0

How to get the positions x,y of an element from its text using UFT? I tried using getTOProperty(x) but it doesn't work for me

narcisse
  • 401
  • 4
  • 8
  • 15

1 Answers1

1

GetRoProperty - is a built method used to retrieve the runtime value of an object property.
So if you have a variabled named X, you can do X = whateverobject.getROProperty("x"). Same for y.

Corey Snow
  • 225
  • 2
  • 15
  • Thank you for your response. but what I am searching for is to know the position X (or Y) of a text not an object – narcisse Jul 26 '19 at 08:57
  • A text field or label is an object, everything is an object. Whether it's a javastatictext, javaobject, javabutton, etc. What exactly is the object you are looking to get the coordinates from? – Corey Snow Jul 26 '19 at 12:30