Visible Text
Locate elements based on the visible text they contain. This is matched without case sensitivity.
Visible text selectors allow you to find elements based on the text content users can actually see on the screen. This is especially useful for buttons, links, and labels where the text is predictable and unique. It’s a more human-readable approach, but it's important to ensure that the text doesn’t change frequently.
Examples:
Add to Basket
Continue
Log in
Forgot password?
Last updated