Function When_I_double_click_position

  • When I double-click position:

    When I double-click {string}
    

    You can double-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 double-click "top-left"
    

    With options:

    When I double-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 double-click "top-right"