Skip to main content

Retrieve Page Elements in Scenario Editor

Retrieve Page Elements in Scenario Editor

Retrieve page elements when a test needs to validate a list, count results, inspect repeated controls, or choose a dynamic item.

  • Prefer stable locators and semantic attributes over visual position.
  • Scope element retrieval to the smallest useful container.
  • Avoid collecting every page element unless the test objective requires it.
  • Document how empty, hidden, or disabled elements should be handled.

Validation workflow

  1. Wait for the page or container to be stable.
  2. Retrieve the target element collection.
  3. Filter the collection by text, attribute, state, or index only when appropriate.
  4. Validate the expected count or selected element before taking action.

Last updated: September 20, 2026