Test Automation of Web Applications with Selenium
Published in
Sep 13, 2021
Requirements:
Download Selenium Grid JAR file -> https://www.selenium.dev/
Install NodeJS -> https://nodejs.org/en/download/
Install Mocha -> https://mochajs.org/#installation
Install ChromeDriver -> https://www.npmjs.com/package/chromedriver
Downlaod VS Code -> https://code.visualstudio.com/
Sample web application:
https://www.testrelic.com/bugshop/
How to start test?
- Open project folder with VS Code
- Open terminal window within VS Code
- Run this command to install dependencies -> Npm install
- Run this command to start test -> mocha test/sepeteEkleCikarTest.spec.js
How to start Selenium Grid on your computer?
- Run this command on a new terminal window ->. java -jar selenium-server-4.0.0-beta-4.jar hub
- Run this command on a new terminal window ->. java -jar selenium-server-4.0.0-beta-4.jar node — detect-drivers true
- Open URL and check if you could see the browsers on your Grid. -> http://127.0.0.1:4444
Youtube webinar: