Installing and configuring selenium server for automated testing sessions.
Some time I do test using some internal or external selenium server, but they do not have the option of restarting every thing from the beginning .
I just want a very fast and basic solution, if the test finish I want the selenium server to restart, and gave me a fresh start for the next automated testing session.
I made this list of script with a basic installer which:
- Have Selenium standalone server will downloaded and installed on your localhost or server.
- Then selenium will start working after reboots.
- This selenium server will start at the 4445 port number.
$ sudo apt-get install openjdk-8-jdk
$ sudo apt-get install openjdk-8-jre
================================================================================
$ sh ./install-selenium-server.sh
================================================================================
sudo /etc/init.d/selenium start
sudo /etc/init.d/selenium stop
sudo /etc/init.d/selenium restart
================================================================================
$ sh ./uninstall-selenium-server.sh
================================================================================
Then Reboot.
The only thing we do need is a reset Button to restart the selenium server to work in a new automated testing session.