Page 1 of 1

recorded element lost

Posted: Mon Jun 11, 2018 2:10 pm
by afef.dhafer
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

Re: recorded element lost

Posted: Tue Jun 12, 2018 7:32 am
by odklizec
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.

Re: recorded element lost

Posted: Thu Jun 21, 2018 12:33 pm
by afef.dhafer
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

Re: recorded element lost

Posted: Thu Jun 21, 2018 1:01 pm
by odklizec
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']