Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Wednesday, 15 May 2024

Anchor Controls

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.

ShortestPathTosca 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.


CoordinateTosca 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.