I’m using the Get Attribute command to find the location of an element. I want to use the “position” attribute from the Property Explorer to extract the location coordinates into an output variable call “ElementLocation”. But I don’t know what kind of a variable to declare “ElementLocation”. Is it a String, an array, list?
When I look at the Property Explorer for the element the position attributes has the following format:
position (2614,476) - (2624,486)
How do I extract (2614,476) - (2624,486) into an output variable with the Get Attribute command?
You can store the output of the position attribute in a variable of type “UiPath.Core.Reigon”.
You can then get the required co-ordinates from this variable by using “<position_variable>.Rectangle.ToString”