Function When_I_scroll_window_to_position

  • When I scroll window to position:

    When I scroll window to {string}
    

    Parameters

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

    Returns void

    When I scroll window to "top"
    When I scroll window to "left"
    When I scroll window to "center"
    When I scroll window to "right"
    When I scroll window to "bottom"
    When I scroll window to "bottom-left"
    When I scroll window to "bottom-right"
    When I scroll window to "top-left"
    When I scroll window to "top-right"

    With options:

    When I scroll window to "top"
    | 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 "bottom"
    And I pause