Page 1 of 1

Skip xpath in ranorex and just identify objects with names??

Posted: Mon May 11, 2015 7:54 am
by fimo420
Hi,

I was wondering if its possible to skip xpath totally in ranorex and just make it identify the objects based on items names?

Re: Skip xpath in ranorex and just identify objects with names??

Posted: Mon May 11, 2015 8:02 am
by odklizec
Hi,

Could you be a bit more specific about what exactly you want to achieve? You can skip most of the elements in the xpath, and leave only the attributes you want (like .//button[@innertext="button name"]), but it could make the search for elements significantly slower and results may be not unique.

And of course, you can always use repository name as object reference. But again, we need more details about the problem you want to solve. Also, please let us know the Ranorex version you are using.

Re: Skip xpath in ranorex and just identify objects with names??

Posted: Mon May 11, 2015 3:01 pm
by krstcs
Ranorex is DESIGNED around using XPath to identify objects. Even if you only use the name of an element to identify it, you will still need to use XPath to identify the objects using the @name attribute.

Once you learn how to use XPath, you won't want to use anything else, it is very powerful.