How to start Selenium standalone server with Browsers on Window Operating System

Profile picture for user devraj

There is not much difference in starting a server on any of operating system.

To download selenium server  and a driver specific to browser click here.

You can launch any browser when you start Selenium server. Below is the code to start Chrome on Ubuntu.

For below code browser drivers are in /drivers directory and your selenium server is in /jar directory. You can give path of your system where drivers and jar is located.

Chrome

java -Dwebdriver.chrome.driver=drivers/chromedriver.exe -jar jar/selenium-server-standalone-3.8.1.jar

Firefox

java -Dwebdriver.gecko.driver=drivers/geckdriver -jar jars/selenium-server-standalone-3.9.1.jar