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.
- Scan the required test object by using Tosca XScan.
- 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.
- Select the control which should be identified.
The system automatically searches for a possible anchor and picks a unique Anchor 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.
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.