Function When_I_scroll_window_to_x_y_coordinates

  • When I scroll window to x-y coordinates:

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

    Parameters

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

    Returns void

    Scroll the window 500px down:

    When I scroll window to 0px and 500px
    

    With options:

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

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

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