Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.35 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.35 KB

visit-scroll

A simple Bash script + Selenium test to visit a URL and scroll to specified element ID.

Getting Started

  1. Clone this repository and run npm install.
  2. Update the endpoint constant value in tests\test.js to the URL you would like the browser to visit.
  3. Update the elementId constant value in tests\test.js to the element ID you would like the browser to scroll to.
  4. Adjust emulation settings on lines 12 - 27, or comment these lines out for regular desktop display.

Prerequisites

Usage

  1. Run sh fire.sh in the root directory of the repo.
  2. Enter number of page loads to loop through.
  3. Sit back and wait - a browser window will load, scroll, then terminate itself after 5 seconds.

Dependencies

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details