Function When_I_scroll_to_position

  • When I scroll to position:

    When I scroll to {string}
    

    Parameters

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

    Returns void

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

    With options:

    When I scroll to "top"
    | 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 "top"

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

    When I scroll to "bottom"
    And I pause