How to find the mapped name for the object
Hi everyone,
I tried to find the mapped name for the object with unknown location.
There is a list with a thousand of items in there. I use Find function to find if the item exist or not based on the name of the item.
And if it was exist, I need to click on that item.
However, Find function only returns the variable that show the item exist or not on the list.
It did not return the mapped name for the object.
How can I find the mapped name of the item to use the Click function?
In your example, p is the object. If Exists is true, then you can use that p object for other things like Click
so something like
p = List.Find("DisplayName","Test_529",15)
if (p.Exists):
p.Click()Log.Message("The object was found.")
else:
Log.Error("The object was not found.")