Abbreviate Xpath

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 39
Joined: Tue Mar 01, 2011 6:20 pm

Abbreviate Xpath

Post by Saha » Tue Mar 01, 2011 7:24 pm

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.

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.


User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Abbreviate Xpath

Post by Support Team » Tue Mar 01, 2011 9:38 pm


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.

Ranorex Support Team