Multiple choice technology testing

How does an automation tool identify a control uniquely when the Automation ID is same for two controls

  1. By using a different property instead of Automation ID

  2. By using a combination of properties with which a control can be found uniquely

  3. Test Automation tools cannot tackle such situations

  4. Automation does not help in such situations

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When automation IDs are duplicated across controls, automation tools use property combinations like name, class name, parent hierarchy, or XPath to uniquely identify each control. A single property might not be sufficient, so tools use multiple attributes together to create a unique selector. Modern automation frameworks can handle this common scenario through composite identification strategies rather than failing when IDs are not unique.