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.

Tuesday 12 July 2022

Identify Controls by Anchor in XScan

In Tricentis Tosca, you can use technical properties of controls to identify other controls. For example if you copy a textbox Label to the Textbox. In this case Tosca copies the identification criteria from the anchor control to the selected control.

       

To Identify controls by anchors, following are steps.

  1. Scan the required test object by using Tosca XScan.
  2. In the Advance View of Tosca XScan, click the Identify by button and select Anchor from the drop-down menu to open the Identify by Anchor window.
  3. Select the control which should be identified.

The system automatically searches for a possible anchor and picks a unique Anchor Control.

NOTE - Alternatively you can select an Anchor Control manually, eg. If the system cannot find an Acnhor Control

--> To manually select an Anchor Control, use drag and drop to move the control whose identification criteria should be copied to the Achor Control field. The control is shown in this field as soon as you release the mouse button.

NOTE - Alternatively, you can click on the Select on Screen button in the Identify by Anchor window and select the control that should be used as Anchor Control from your application.


The Anchor Control Properties window shows the properties that were transferred along with the control.

Relative Algorithm - 

In this drop-down menu you can define the algorithm to be used to identify controls by an anchor control. The selection is made automatically.

Possbile Values - 

Shortest Path - The system searches each tree level for the control to be identified, starting with the anchor control. The search starts directly beneath the control and goes from button to top to the root element.

Coordinate - The exact position of the control to be identified is searched by using coordinates.

Auto - If the Shortest Path algorithm was unsuccessful, the system will switch to the Coordinate algorithm.

Remove Anchors -  To remove an anchor, select the control used for identification in the Anchor Control window and select the option Remove Anchor from the context menu.

NOTE - To identifying the Anchor, you will use the UL element.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.