Hello, thanks for using ZAPTEST
Objects in ZAPTEST has “Coordinates” property. See screenshot 1.
You can validate position of the object on the screen based on X and Y coordinates and validate object size based on Width and Height.
To get the value of the property you can use method “GetProperty”. For example to get value of X-coordinate of the object you need to do following command:
Application(“your_application”).View(“your_view”).Object(“object_you_want_to_validate”).GetProperty “X”
And you can set Y, Width or Height instead of X for other coordinate values.
NOTE.
If you get value of the property of the object prior to it recognition on the screen – you will get value from repository.
If you get value of the property of the object after object recognition, for example do “Exist” method for that object first – you will get value from real application. Thus you are able to compare between repository template and real object.
While you are using Free edition you need to make this comparison every time you need it whereas in Enterprise version you may create a function for it and simply call for this function each time.
Hope that helps.
Thanks,
ZAPTEST Team