Page 1 of 1

text matching

Posted: Mon Feb 18, 2013 5:09 pm
by Mozzytm
Hi there,

Is there any way to get the automation to just look for text on screen. by which I mean look for text that equals "MYTEXT" anywhere on screen rather than look in approot/container[1]/container[2]/container......./text="MYTEXT"

I suppose in a nutshell, a non-repository based comparison
Thanks

M

Re: text matching

Posted: Tue Feb 19, 2013 5:11 pm
by Support Team
Hi,

If I got this correctly you could use a RxPath similar to this one: "YourRootElement//*[@text='MYTEXT']"".
This will find all elements with a text property set to the specific text in your application.
For more information about the RxPath please take a look at the following links:
RanoreXPath, RanoreXPath – Tips and Tricks.

Regards,
Markus