Anchors are controls that work as positional reference, providing context or information about the location of the control you want to identify.
For example, if you copy the text displayed in a Label close to a Textbox to transfer it into the Textbox itself, Tosca first searches for the anchor control (the Label) and then uses its identification criteria as a reference to find, interact with, and identify the selected control (the Textbox).
Relative algorithm :
Use the Relative Algorithm to specify the preferred search method:
Auto (default) : Uses the ShortestPath algorithm by default. If the ShortestPath algorithm was unsuccessful, the system automatically switches to the Coordinate algorithm.
ShortestPath : Tosca starts searching for the control starting from the children controls of the anchor, then it extends the search on every tree level until it reaches the root element.
Coordinate : Tosca uses the coordinates of the anchor control to locate a search angle and find the control.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.