Knowledgebase: Object Recognition
Do I always have to make a screenshot to build the object tree?
Posted by Carmina Garcia on 26 September 2018 02:34 PM

In general, the user should always take a snapshot and use that snapshot to define App Objects.

But there are times when expert users might want to define an object dynamically using a selector.
 
 
Here are a couple of examples:
 
MyWebPage.WebTextField[1].SetValue("hello")
MyWebPage.WebTextField[fist].SetValue("hello")
MyWebPage.WebTextField[last].SetValue("hello")
 
You can refer to object dynamically but we only recomend to do that if there is no way to define them first using a snapshot. The snapshot is our version of a spy tool.
(0 vote(s))
Helpful
Not helpful

Comments (0)
Help Desk by Novalys