To elaborate: Here is the issue:
The element I'm looking (div) at has a "Location" (different from ScreenLocation). And the Location has an X and Y in it. X=5 and Y=9.
How do I make a RanorexPath that gets the element at location X=5? I already know the rest of the path I just need the part where I assign the object based on its location. Nothing else has X=5 of that type so that's all I need to do.
I tried div[@Location.X=5] but it didn't work. I assume I'm doing the syntax wrong. Does anybody know the proper syntax for a scenario like this?
For example for a normal variable like visible you can do [@visible='true'] but what if you want to do location.x instead? I 'can't' do [@location.x='5'] it doesn't work for some reason...
How to call Location variable in the RanoreXPath?
How to call Location variable in the RanoreXPath?
You do not have the required permissions to view the files attached to this post.
Re: How to call Location variable in the RanoreXPath?
Hi,
These coordinates are only accessible with cx()/cy() xpath functions. Please check this post, which should help:
https://www.ranorex.info/adding-locatio ... tml#p52960
Or this user guide paragraph:
https://www.ranorex.com/help/latest/ran ... #Functions
These coordinates are only accessible with cx()/cy() xpath functions. Please check this post, which should help:
https://www.ranorex.info/adding-locatio ... tml#p52960
Or this user guide paragraph:
https://www.ranorex.com/help/latest/ran ... #Functions
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration