The selenium server runs using the firefox (gecko driver) by default, sometimes you wish to use a different browser, making this switch is very simple and in this tutorial, we will use the chrome browser. Follow the steps listed below
- Downoad the selenium driver for the web browser of your choice, in this case (chrome driver).
- place the chromedriver file in the same folder with you selenium standalone server jar file.
- If on linux or mac, you need to make sure the file is executable, so run the command chmod 777 or chmod u+x chromedriver
- Run the selenium standard alone server with the chrome driver using the command below
# running the selenium server with chrome driver java -jar selenium-server-standalone-3.11.0.jar -D webdriver.chrome.driver="chromedriver.exe"