The combination of attributes such as ______ and ______ can help create more robust XPath locators.

  • class, index
  • id, name
  • resource-id, package
  • text, content-desc
The combination of attributes such as text and content-desc can help create more robust XPath locators. This combination provides a more reliable way to locate elements, especially when the other attributes may change.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *