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.
Recommended guidance
- 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
- Wait for the page or container to be stable.
- Retrieve the target element collection.
- Filter the collection by text, attribute, state, or index only when appropriate.
- Validate the expected count or selected element before taking action.
Last updated: September 20, 2026