This package provides you with a Selenium server ready to run on Linux, Mac OS, or Windows.
composer require anteris-dev/selenium-server
Next you will want to install a Selenium driver.
# To install Gecko Driver
./vendor/bin/selenium install:gecko
# To install Chrome Driver
./vendor/bin/selenium install:chrome
# To install both
./vendor/bin/selenium install
./vendor/bin/selenium serve
To modify the driver used, pass the --driver method to the command. Supported drivers are listed below.
- Gecko (Firefox)
- Chrome (Chromium)
# Start a Firefox instance
./vendor/bin/selenium serve --driver gecko
# Start a Chromium instance
./vendor/bin/selenium serve --driver chrome