Skip to main content

Retrieve Page Elements in Scenario Editor

Retrieve Page Elements in Scenario Editor

PleaseRetrieve usepage 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 followingsmallest lineuseful ofcontainer.
  • Avoid codecollecting inevery page element unless the test designerobjective IDErequires thatit.
  • Document willhow logempty, allhidden, or disabled elements should be handled.

Validation workflow

  1. Wait for the elementspage onor acontainer givento page.be

    getTagsSmartTags() API will get allstable.

  2. Retrieve the elementstarget ofelement acollection.
  3. Filter webthe page.collection by
    text,
    attribute, state, or index only when appropriate.
  4. Validate the expected count or selected element before taking action.

Last updated: JuneSeptember 26,20, 20232026

If you have any feedback on this topic, please contact us at documentation@appvance.ai