Download the PHP package lireincore/webdriver without Composer
On this page you can find all versions of the php package lireincore/webdriver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lireincore/webdriver
More information about lireincore/webdriver
Files in lireincore/webdriver
Package webdriver
Short Description A PHP client for WebDriver
License Apache-2.0
Homepage https://github.com/lireincore/webdriver
Informations about the package webdriver
php-webdriver – Selenium WebDriver bindings for PHP
Description
Php-webdriver library is PHP language binding for Selenium WebDriver, which allows you to control web browsers from PHP.
This library is compatible with Selenium server version 2.x and 3.x. It implements the JsonWireProtocol, which is currently supported by the Selenium server and will also implement the W3C WebDriver specification in the future.
The concepts of this library are very similar to the "official" Java, .NET, Python and Ruby bindings from the Selenium project.
This is new version of PHP client, rewritten from scratch starting 2013. Using the old version? Check out Adam Goucher's fork of it.
Looking for API documentation of php-webdriver? See https://facebook.github.io/php-webdriver/
Any complaint, question, idea? You can post it on the user group https://www.facebook.com/groups/phpwebdriver/.
Installation
Installation is possible using Composer.
If you don't already use Composer, you can download the composer.phar
binary:
curl -sS https://getcomposer.org/installer | php
Then install the library:
php composer.phar require facebook/webdriver
Getting started
All you need as the server for this client is the selenium-server-standalone-#.jar
file provided here: http://selenium-release.storage.googleapis.com/index.html
Download and run that file, replacing # with the current server version.
java -jar selenium-server-standalone-#.jar
Then when you create a session, be sure to pass the url to where your server is running.
-
Launch Firefox:
- Launch Chrome:
You can also customize the desired capabilities:
-
See https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities for more details.
- Above snippets are not intended to be a working example by simply copy pasting. See example.php for working example.
Changelog
For latest changes see CHANGELOG.md file.
More information
Some how-tos are provided right here in our GitHub wiki.
You may also want to check out the Selenium docs and wiki.
Testing framework integration
To take advantage of automatized testing you will most probably want to integrate php-webdriver to your testing framework. There are some project already providing this:
- Steward integrates php-webdriver directly to PHPUnit, also providers parallelization.
- Codeception testing framework provides BDD-layer on top of php-webdriver in its WebDriver module.
- You can also check out this blogpost + demo project, describing simple PHPUnit integration.
Support
We have a great community willing to try and help you!
- Via our Facebook Group - If you have questions or are an active contributor consider joining our facebook group and contributing to the communal discussion and support.
- Via StackOverflow - You can also ask a question or find many already answered question on StackOverflow.
- Via GitHub - Another option if you have a question (or bug report) is to submit it here as an new issue.
Contributing
We love to have your help to make php-webdriver better. See CONTRIBUTING.md for more information about contributing and developing php-webdriver.