Download the PHP package peridot-php/webdriver-manager without Composer
On this page you can find all versions of the php package peridot-php/webdriver-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peridot-php/webdriver-manager
More information about peridot-php/webdriver-manager
Files in peridot-php/webdriver-manager
Package webdriver-manager
Short Description Library and command line tool for managing Selenium WebDriver
License MIT
Informations about the package webdriver-manager
WebDriver Manager
The perfect companion for projects with functional tests. Heavily inspired by the webdriver-manager
that ships with protractor. WebDriver Manager allows you to keep Selenium Server binaries up to date. It also provides a packaged solution for easily starting Selenium Server.
In addition to an easy to use command line application, WebDriver Manager provides a library for managing Selenium binaries in your own apps and tools.
Installation
WebDriver Manager is meant to be a drop in installation for any project using Selenium WebDriver for functional tests.
Once installed, you can operate Selenium Server from the comfort of your project:
Usage
clean
Remove all installed binaries.
status
List all available binaries and their installed status. Status shows if the binary is installed, out of date, or missing.
update
The update command downloads current binaries and deletes old ones.
start
Starts Selnium Server with all drivers managed by WebDriver Manager. The start command will run an update at start to make sure drivers are available and up to date.
Library Usage
WebDriver manager exposes a really simple interface that makes it easy to leverage in your own applications and tools:
A note on starting Selenium in the background
WebDriver Manager does not block when starting a background process. This makes it difficult to see if Selenium encountered any errors (perhaps a corrupt binary?). The SeleniumProcess
class provides a method for checking the status of the process. If you want to check that Selenium Server started in the background ok, you might try something like this:
For more information, see the API docs;
Examples
The API has been used to create a custom Behat listener capable of starting the server before Mink tests are run. This tool is included as part of a demo project known as behavior driven todos.
Running Tests
WebDriver Manager's tests were written using the Peridot test framework.
Unit tests can be run like so:
And integration tests can be run like this:
Contributing
Please feel free to open issues or pull requests.
All versions of webdriver-manager with dependencies
evenement/evenement Version ~2.0
symfony/console Version ~2.6
splitbrain/php-archive Version ~1.0