Download the PHP package fonsecas72/selenium-handler without Composer
On this page you can find all versions of the php package fonsecas72/selenium-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package selenium-handler
Selenium Handler
Download, Start & Stop Selenium Server with PHP >= 5.4 as a kind of a client or by command line.
This package was written to avoid downloading selenium by hand and to avoid those complex commands to make selenium to start. It also allows you to use it with-in your own package.
Installation
With Composer:
Usage
In your application
You can create a downloader, a starter, a stopper and a watcher. E.g. to create a starter:
Then you can call:
And it will just work.
Of course, you can also change de default settings. This is done by calling options classes that each one if this has. E.g. to change a setting for the starter:
You can also create a "handler" that will allow you to start, stop, download, etc. through one single class.
see the tests and the built-in commands for more examples, or open an issue
Built-in commands
get selenium
(it will download to current directory by default)
You can set the destination directory with
You can set the selenium version with
start selenium
You can give the selenium location with
Optionally, you may choose whether or not you want to use xvfb
You can throw selenium options too. For example: You can set the firefox profile to use:
You can also set how much you are willing to wait for selenium to start (in seconds)
stop selenium
Tips & Tricks
You can also tail the selenium log after start with follow option:
You can even track a specific log level
This can be specially useful if you start selenium in the background before running tests.
Then if some error happens you will see it in your test log / output.
All versions of selenium-handler with dependencies
guzzlehttp/guzzle Version ^5.0|^6.0
symfony/dependency-injection Version ^2.7|^3.0
symfony/process Version ^2.7|^3.0