Hi,
can anyone tell me how to get the web elements and flex objects by their id's.
i don't want to add all the objects to repository because the position of elements in my web page goes on changing from build to build, instead of xpath i would like to get the elements by using their unique id's.
Thanks,
Arun
how to get elements using their id's
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: how to get elements using their id's
Hi arun_volam,
to identify your elements by id use the 'id' (or additional for flex 'flexuid' ) property in your RxPath.
sample paths:
e.g.
/dom[@domain='www.gmx.at']/body/div[@id='container']/div[@id='wrapper']/div[@id='header']
or
/dom[@domain='www.ranorex.com']/body/flexobject/button[@flexuid='FlexExample0.Button301']
Use Ranorex Spy and look on the overview tab for attributes you can use to identify an element.
Also see: http://www.ranorex.com/support/user-gui ... xpath.html
Best regards,
Christian
Ranorex Team
to identify your elements by id use the 'id' (or additional for flex 'flexuid' ) property in your RxPath.
sample paths:
e.g.
/dom[@domain='www.gmx.at']/body/div[@id='container']/div[@id='wrapper']/div[@id='header']
or
/dom[@domain='www.ranorex.com']/body/flexobject/button[@flexuid='FlexExample0.Button301']
Use Ranorex Spy and look on the overview tab for attributes you can use to identify an element.
Also see: http://www.ranorex.com/support/user-gui ... xpath.html
Best regards,
Christian
Ranorex Team