Example UI Test with Selenium Web Driver for https://sdetassessment.azurewebsites.net/
- Node.js v12
- Selenium WebDriver for JavaScript
- Mozilla Firefox
- Mozilla's GeckoDriver (added to PATH - instructions below)
-
Clone the repository to a local folder.
-
Run the following commands:
$ npm install
$ node app.js
Check repo link in the requirements section to check for latest driver
wget https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-linux64.tar.gz
tar -xvzf geckodriver*
chmod +x geckodriver
sudo mv geckodriver /usr/local/bin/
Source: https://askubuntu.com/questions/870530/how-to-install-geckodriver-in-ubuntu