edmondscommerce / selenium-server
Utilities for installing and running Selenium (with Chromedriver), ideal for use with Behat
Installs: 15 299
Dependents: 2
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 4
Open Issues: 2
Language:Shell
This package is auto-updated.
Last update: 2024-11-07 20:44:54 UTC
README
By Edmonds Commerce
This is a simple package to easily run Selenium with Chrome driver.
It does not contain the binaries, instead it will download them on first run.
It has only been run and tested on Linux.
To install it simply add
"edmondscommerce/selenium-server": "~1"
To your composer.json file and then run composer update
Running
bin/selenium-run.bash
To run Selenium in a terminal. You can stop the Selenium process as required by hitting [ctrl]+[c]
Running in the background
bin/selenium-background-run.bash
This will run the process in the background using nohup
Stopping the background process
bin/selenium-stop.bash
This will find a Selenium process that is running in the background and kill it
Firefox / Chrome
This process uses Chrome by default.
If you want to use it with Firefox, you need to append the firefox
flag, eg
bin/selenium-run.bash firefox
Or
bin/selenium-background-run.bash firefox