Platform
Locating elements
Use ARIA Labels
Use aria-labels for reliable element targeting. For example: “Click the button with aria-label ‘submit-payment’”.
Visual Attributes
Describe elements using visual properties: “the red Cancel button” or “the hamburger menu beside the logo”.
Position Context
When multiple similar elements exist, specify location:
- Inside: “the Submit button in the login form”
- Order: “the second Submit button”
- Position: “the Submit button to the right of the Username field”