A simple Bash script + Selenium test to visit a URL and scroll to specified element ID.
- Clone this repository and run
npm install. - Update the
endpointconstant value intests\test.jsto the URL you would like the browser to visit. - Update the
elementIdconstant value intests\test.jsto the element ID you would like the browser to scroll to. - Adjust emulation settings on lines 12 - 27, or comment these lines out for regular desktop display.
- Node.js - Download
- Run
sh fire.shin the root directory of the repo. - Enter number of page loads to loop through.
- Sit back and wait - a browser window will load, scroll, then terminate itself after 5 seconds.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Adam Crampton - LinkedIn
This project is licensed under the MIT License - see the LICENSE.md file for details