recorded element lost

Ask general questions here.
afef.dhafer
Posts: 2
Joined: Mon Jun 11, 2018 12:50 pm

recorded element lost

Post by afef.dhafer » Mon Jun 11, 2018 2:10 pm

Hi support team,

I'm working on a virtual machine (windows 7 sp1) where I have installed ranorex 8.1.2 with 32-bit and visual studio 2017; when making records, ranorex recognizes all different graphic fields of the recorded action for a while but after few seconds he totally lose recognition. I'm still don't know the reasons behind this. Do you have any idea about this issue. could you please help me ?

Thanks

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: recorded element lost

Post by odklizec » Tue Jun 12, 2018 7:32 am

Hi,

I'm afraid, there is not enough information to provide a reasonable answer ;) Please answer the below questions...

What do you mean by "after few seconds he totally lose recognition"? Ranorex is not able to record things or the already recorded elements are not found?

What kind of application we are talking about (desktop, web mobile) and what technology is the application build on (java, wpf, xamarin, etc...)? Any special 3rd party GUI libraries are used?

What kind of error (if any) are you getting?

Have you tried to use Ranorex (and the application under test) on another machine?

Please post a Ranorex snapshot of the application and example of failing xpath (if Ranorex fails to find an already recorded element. Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

afef.dhafer
Posts: 2
Joined: Mon Jun 11, 2018 12:50 pm

Re: recorded element lost

Post by afef.dhafer » Thu Jun 21, 2018 12:33 pm

Hi support team,

Thank you for your attention. I will answer the questions posed by following:

1)Ranorex does the recognition of things,it makes the recording in an ideal way and when I launch hilight, the recorded elements are found for a certain time (about 10 minutes) but afterwards, it loses the recognition and the saved items will not be found.
2)It is a desktop application.The technology used is javaFx and there are no special 3rd party GUI libraries.
3)The error displayed by recognizing registered items:a progress bar for searching for element paths that appears without finding any element.
4)I didn't have tried to use Ranorex (and the application under test) on another machin.
5)You will find attached a Ranorex snapshot of the application and example of failing xpath (if Ranorex fails to find an already recorded element).
Note: I am a beginner in Ranorex.

Thanks
Attachments
Fichier.zip
(1.64 MiB) Downloaded 8 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: recorded element lost

Post by odklizec » Thu Jun 21, 2018 1:01 pm

Hi,

Looking at the screenshot and snapshot you posted, my guess is, that the StyleClass attribute (of the failing table) sometime changes? In other words, the content of StyleClass may be different/empty from time to time? I would suggest to simplify the xpath a bit, to avoid potentially changing attributes (either StyleClass or element indexes). Try for example something like this:

Code: Select all

/form[@title='GDS 2']/container[@type='BorderPane']/container[@type='StackPane']//container[@type='TabPane']/container//table[@type='bd']/row/cell[@text~'Windshield\ Wiper\ High\ Speed\ Switch']
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration