Page 1 of 1

Abbreviate Xpath

Posted: Tue Mar 01, 2011 7:24 pm
by Saha
I have two edit fields in my test application page.
I have used renoex recording to enter the data in those fields.
(1)I played the recording and Ranorex was able to find the fields vey quickly.

(2)Then I have abbreviated the xpath in the repository and tried to play the same recording. This time it took few secs to searh those fields.

(3)Next time when I ran the same steps it was faster than last time.

Questions
1. Why it was slow in the step -2
2.How it became faster in the step (3) even though when I was using the same abbreviate xpath.

Thanks,

Re: Abbreviate Xpath

Posted: Tue Mar 01, 2011 9:38 pm
by Support Team
Hello,

here the answer to your two questions:

1) the RanorexPath can be used to find an element using minimal specification,
like /dom[...]//div[@style~'xyz']. In such a case a lot of elements must be checked to find the one that fits to the RanorexPath. So it will take longer. How long depends on how many applications/pages you have open.

2) Then there is caching done: so once a element fitting to a repository folder has been found it is remembered and reused. Caching can be turned off.

Regards,
Roland
Ranorex Support Team