edmondscommerce/selenium-server

Utilities for installing and running Selenium (with Chromedriver), ideal for use with Behat

1.0.8 2018-03-08 17:29 UTC

This package is auto-updated.

Last update: 2024-10-07 20:25:44 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