Page 1 of 1

locate rawtext in some rectangle

Posted: Tue Oct 14, 2014 9:30 am
by BorisS
I have multiple rawtexts in some window, many of them having the same value. I want to make xpath expression allowing to refer a text on the basis of its window position.

For example I want refer a rawtext located in a box with relative coordinates x=10;y=50;width=40;height=10

Re: locate rawtext in some rectangle

Posted: Wed Oct 15, 2014 4:08 pm
by Support Team
Hi Boris,

You can use the following RxPath for relative coordinates:

Code: Select all

./rawtext[cx()=10 and cy()=50 and width()=40 and height()=10]
For more information about the RxPath please take a look at the following link: RanoreXPath.

Regards,
Markus