locate rawtext in some rectangle

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
BorisS
Posts: 14
Joined: Fri Jul 11, 2014 2:25 pm

locate rawtext in some rectangle

Post by BorisS » Tue Oct 14, 2014 9:30 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: locate rawtext in some rectangle

Post by Support Team » Wed Oct 15, 2014 4:08 pm

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