Function When_I_find_elements_by_role

  • When I find elements by role:

    When I find elements by role {string}
    

    Queries for elements with the given role.

    Parameters

    • role: string
    • Optionaloptions: DataTable

    Returns void

    When I find elements by role "progressbar"
    

    With options:

    When I find elements by role "progressbar"
    | log | true |
    | timeout | 4000 |
    | withinSubject | null |
    | includeShadowDom | false |

    This precedes steps like "When I click". For example:

    When I find elements by role "progressbar"
    And I get 1st element
    And I click

    Inspired by Testing Library's ByRole.