Function When_I_find_button_by_text

  • When I find button by text:

    When I find button by text {string}
    

    Finds first button element that matches text.

    Parameters

    • text: string
    • Optionaloptions: DataTable

    Returns void

    When I find button by text "Button"
    

    With options:

    When I find button by text "Button"
    | log | true |
    | timeout | 4000 |
    | withinSubject | null |
    | includeShadowDom | false |

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

    When I find button by text "Button"
    And I click