by rkarhe » Sat Sep 03, 2011 6:47 am
Well, I will try to re-explain my findings with example.
Let's say I have a ui element having innertext as "Ranorex", this element is on page having title "Welcome to Renorex" and inside table having id as "ranorexId".
When I will track this through Ranorex Spy, ranorex will say me that 2 elements found and RxPath will be something as follows
1)/form[@title="Welcome\ to\ Renorex"]//table[@id="ranorexId"]//span[@innertext="Ranorex"].
2)/dom[@domain="DOMAIN_NAME" @caption="Welcome\ to\ Renorex"]//table[@id="ranorexId"]//span[@innertext="Ranorex"].
Spy identified the element as /form object and as /dom object. So I have following queries.
- Why is that SPY gives 2 way identification of elements. Is there any specific reason behind this?
- I observed /dom way identification of elements is faster than /form way identification. What is your take on this?
Find my comments on your questions.
Which technology do you use?
- c# with ranorex 3.0.4
Are you testing a web or other kind of application?
- web application.
and so on...
I hope I have explained the issue, Let me know if required more info.
Thanks,
Rocky