Skip to main content
Home

Main navigation

  • Home
  • Products
  • Services
  • Docs
  • Blog
  • About us
  • Contact
Webship JS 1.0.x
  • Install Webship JS
  • Global Settings
  • Step Definitions
    • Given I am on homepage
    • Given I am on "specific" page
    • When I go to the homepage
    • When I go to "specific page"
    • When I reload the page
    • When I move backward one page
    • When I move forward one page
    • When I fill in
      • When I fill in "field" with "value"
      • When I fill in "field" with "value" by its attribute
      • When I fill in "value" for "field" by its attribute
      • When I fill in the following: by its attribute
      • When I fill in "value" for "field"
      • When I fill in "field" with:
        • When I fill in "field" with empty value by its attribute
      • When I fill in the following:
    • When I press "button"
      • When I press "button" by attribute
    • When I click "link"
      • When I click "link" by attribute
    • When I check "checkbox"
    • When I uncheck "checkbox"
    • When I select "option" from "select list"
      • When I select "option" from "select list" by attribute
    • When I click "operation" in "text" row
    • When I wait
      • When I wait until the page loaded
      • When I wait {number} seconds
      • When I wait max of {number} seconds
      • When I wait {number} minutes
      • When I wait max of number minutes
    • Then I should see
      • Then I should see "text in the page"
      • Then I should not see "text in the page"
      • Then I should see text matching "text pattern"
      • Then I should not see text matching "text pattern"
      • Then I should see text matching "text pattern" in the "element" element
      • Then I should not see text matching "text pattern" in the "element" element
      • Then I should see (a/an) "field" element
      • Then I should not see "value" in the "text" element
      • Then I should not see (a/an) "field" element
      • Then I should see "value" in the "text" element
      • Then I should see "value" in the "text" element by attr
      • Then I should not see "value" in the "text" element by attr
    • Then I should be
      • Then I should be on (the) homepage
      • Then I should not be on (the) homepage
      • Then I should be on "specific page"
      • Then I should not be on "specific page"
    • Then the "item" checkbox
      • Then the "item" checkbox is checked
      • Then the "item" checkbox is not checked
      • Then the "item" checkbox should be checked
      • Then the "item" checkbox should not be checked
    • Then the item should contain
      • Then the "item" field should contain "value"
      • Then the "item" field should not contain "value"
      • Then the response should contain "text in the page"
      • Then the response should not contain "text in the page"
      • Then the "item" element should contain "CSS style"
      • Then the "item" element should not contain "CSS style"
    • Then I should see "operation" in "text" row
    • Then the "item" link should contain "url"
    • Then the "value" radio button is selected
    • Then the radio button "value" should be selected
    • Then the response status code should be {number}
    • When I attach the file "file name" to "element"
    • When I scroll
      • When I scroll down
      • When I scroll up
      • When I scroll to top
      • When I scroll to the bottom
      • When I scroll to top of "<selector>"
      • When I scroll to bottom of "<selector>"
      • When I scroll right
      • When I scroll left
      • When I scroll to start
      • When I scroll to the end
      • When I scroll to start of "<selector>"
      • When I scroll to end of "<selector>"
    • When I select radio button "value"
    • When I wait for AJAX to finish
  • API Step Definitions
    • Given I am authenticating as "username" with "pa$$word" password
    • Given I set header "Header-Name" with value "Some-Value"
    • Given I set placeholder "{{placeholder}}" to "value"
    • Given I set the following headers:
    • Given I set the header "Header-Name" to "Header-Value"
    • Given I set the request body to 'JSON-data'
    • Given I set the request body with:
    • Given the API base URL is "url"
    • Then print API response
    • Then the API response code should be {number}
    • Then the API response should contain "text"
    • Then the API response should contain json:
    • Then the API response should not contain "text"
    • Then the JSON response should have "propertyPath" equal to "value"
    • Then the JSON response should have property "propertyPath"
    • Then the JSON response should not have property "propertyPath"
    • Then the response header "response header" should be "value"
    • Then the response should be valid JSON
    • When I send a METHOD request to "endpoint"
    • When I send a METHOD request to "endpoint" with body:
    • When I send a METHOD request to "endpoint" with form data:
    • When I send a METHOD request to "endpoint" with values:
  • Assertions
  • Commands
  • Needed Tools
    • Install Node.js and npm
    • Install Yarn
    • Install The Latest Chrome Browser
    • Install The Latest Chrome Driver
    • Install Selenium Standalone
    • Run Selenium on localhost

Breadcrumb

  1. Home
  2. Webship JS 1.0.x
  3. Step Definitions
  4. When I scroll

When I scroll to top

Scrolls to the very top of the current page.

Syntax

When I scroll to top
When I scroll to the top
When scrolling to the top of the page

Example

When I scroll to the top

Book traversal links for Webship JS 1.0.x

  • Previous When I scroll up
  • Up
  • Next When I scroll to the bottom

Boost your site's success with automated testing

For Commercial Professional Support

Contact Us

On this page

    Type to find a page. Enter opens the selected page; with nothing selected, Enter searches the whole site.

    Daily Automated Functional Acceptance Testing   

    © Copyrights 2022 - 2026 Webship.co All Rights Reserved.

    Webtheme Footer

    • Privacy
    • About us
    • Contact

    Home

    Webtheme social media menu

    • Github
    • Gitlab
    • Bitbucket
    • X
    • Linkedin
    • Youtube