• 0

Setup remote selenium driver

Do you want your Jenkins plan to run your functional automation tests to run against remote selenium host? Do you need help in setting up remote selenium host? Then this tutorial will teach you step by step how to setup remote selenium host.

  1. Download and install Google chrome
  2. Download and install JDK. If you already have it installed then you can skip this step.
  3. Download selenium-server-standalone jarfile
    • From here
    • If you want a particular version of the server then modify the path parameter in the above URL
  4. Download chromedriver.exe. And add it to the PATH environment variable.
    • From here. An alternative way to download is the following :
$ sudo apt-get install unzip
$ cd $HOME/Downloads
$ wget http://chromedriver.googlecode.com/files/chromedriver_linux64_19.0.1068.0.zip
$ sudo unzip chromedriver_linux64_19.0.1068.0.zip
$ mkdir -p $HOME/bin
$ mv chromedriver $HOME/bin
$ echo "export PATH=$PATH:$HOME/bin" >> $HOME/.bash_profile
This file will needs to be in a directory in your PATH environment variable, so that it can be found by selenium. Congratulations !!! You are all set !!!
  1. Run the selenium server
    • Navigate to the directory that your selenium-server-standalone jarfile is located in.
    • java -jar selenium-server-standalone-2.44.0.jar
  2. The remote host is set up, with the selenium jarfile running
    • Point your functional tests to run against this remote host using remote hosts IP address. Most likely you have to set the following flag --seleniumHost=ip_address_remote_host