I am wondering how to access an element's "ScreenLocation" value from a repository XPath.
The end of my XPath looks like span/label[@element.screenlocation.y='588']
And when I run this Ranorex tells me that it failed to find the attribute. So I must be calling the attribute the wrong way, and I'm wondering how should I go about accessing the screen location. Does anybody know of any proper examples?
What I'm trying to do is create a repo item equal to the label located at 588, there should only be one.
Thank you.
How to access an element screenlocation in xpath.
Re: How to access an element screenlocation in xpath.
Hi,
You can't use screenlocation in the xpath. However, there are some screen coordinate functions in the xpath. Check this User Guide chapter:
https://www.ranorex.com/help/latest/ran ... #Functions
So in your case, it should be like this:
You can't use screenlocation in the xpath. However, there are some screen coordinate functions in the xpath. Check this User Guide chapter:
https://www.ranorex.com/help/latest/ran ... #Functions
So in your case, it should be like this:
Code: Select all
span/label[y()=‘588‘]
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