Function When_I_click_position

  • When I click position:

    When I click {string}
    

    You can click on 9 specific positions of an element:

     -------------------------------------
    | top-left top top-right |
    | |
    | |
    | |
    | left center right |
    | |
    | |
    | |
    | bottom-left bottom bottom-right |
    -------------------------------------

    Parameters

    • position:
          | "top"
          | "left"
          | "center"
          | "right"
          | "bottom"
          | "bottom-left"
          | "bottom-right"
          | "top-left"
          | "top-right"
    • Optionaloptions: DataTable

    Returns void

    When I click "top-left"
    

    With options:

    When I click "top"
    | altKey | false |
    | animationDistanceThreshold | 5 |
    | ctrlKey | false |
    | log | true |
    | force | false |
    | metaKey | false |
    | multiple | false |
    | scrollBehavior | top |
    | shiftKey | false |
    | timeout | 4000 |
    | waitForAnimations | true |

    A preceding step like "When I find element by text" is required. For example:

    When I find element by text "Text"
    And I click "top-right"