April 30, 2024

Tip of the Day 6

Tip 6

Use relational APIs to identify elements.

How to Do This?

1. Let's say, Element1 does not have a unique identifier. Identify another element, let's say Element2, with a unique identifier. Element2 must have a relation like under/above/right/left/in/near with Element1.

2. Then in the Sahi Pro Controller, click on the anchor button.

3. Next identify the Element1. Now, you will have an Accessor for Element1 in relation to Element2.

How Does this Benefit Anyone??

Using relational APIs makes your scripts more foolproof and run consistently even if the identifier changes.

Download this Tip as a PDF

Continue reading

Tip of the Day 9