Function When_I_scroll_to_x_y_coordinates

  • When I scroll to x-y coordinates:

    When I scroll to {int}px and {int}px
    

    Parameters

    • x: number
    • y: number
    • Optionaloptions: DataTable

    Returns void

    Scroll the element 500px down:

    When I scroll to 0px and 500px
    

    With options:

    When I scroll to 100px and 200px
    | duration | 0 |
    | easing | swing |
    | ensureScrollable | true |
    | log | true |
    | timeout | 4000 |

    A preceding step like "When I get element by selector" is required. For example:

    When I get element by selector "#scrollable"
    And I scroll to 100px and 200px

    Snapshots don't reflect scroll behavior. To see the scrolling behavior in action, use "When I pause":

    When I scroll to 0px and 500px
    And I pause