Function When_I_click_on_testid

  • When I click on test ID:

    When I click on test ID {string}
    

    Clicks on first element that matches the data-testid or data-test-id attribute:

    <div data-testid="test"></div>
    <div data-test-id="test"></div>

    Use this only if the other actions don't work. data-testid or data-test-id don't resemble how your software is used and should be avoided if possible.

    Parameters

    • testId: string
    • Optionaloptions: DataTable

    Returns void

    When I click on test ID "testID"
    

    With options:

    When I click on test ID "testID"
    | 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 |