Function When_I_click_on_button

  • When I click on button:

    When I click on button {string}
    

    If multiple buttons are found, it will click on the first one.

    Parameters

    • text: string
    • Optionaloptions: DataTable

    Returns void

    When I click on button "Button"
    

    With options:

    When I click on button "Button"
    | altKey | false |
    | animationDistanceThreshold | 5 |
    | ctrlKey | false |
    | force | false |
    | includeShadowDom | false |
    | log | true |
    | metaKey | false |
    | multiple | false |
    | scrollBehavior | top |
    | shiftKey | false |
    | timeout | 4000 |
    | waitForAnimations | true |
    | withinSubject | null |