For the complete documentation index, see llms.txt. This page is also available as Markdown.

Visible Text

Locate elements based on the visible text they contain. This is matched without case sensitivity.

Visible Text finds Elements by the text a user can see on screen. It suits buttons, links, and labels where the wording is predictable and unique.

Use Visible Text when the label is stable and easy to read in the test. When your application exposes dedicated test attributes, prefer Test ID so copy changes do not break the Element.

See Creating Elements to add a Manual Element with a Visible Text selector.

Examples:

  • Add to Basket

  • Continue

  • Log in

  • Forgot password?

Last updated