PHPackages                             alexandresalome/php-webdriver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. alexandresalome/php-webdriver

Abandoned → [facebook/webdriver](/?search=facebook%2Fwebdriver)Library[Testing &amp; Quality](/categories/testing)

alexandresalome/php-webdriver
=============================

PHP-WebDriver is a client for WebDriver and a Behat extension

v0.9.0(12y ago)195.3k9MITPHPPHP &gt;=5.4

Since May 3Pushed 11y ago3 watchersCompare

[ Source](https://github.com/alexandresalome/php-webdriver)[ Packagist](https://packagist.org/packages/alexandresalome/php-webdriver)[ RSS](/packages/alexandresalome-php-webdriver/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (22)Used By (0)

PHP WebDriver
=============

[](#php-webdriver)

DEPRECATED
----------

[](#deprecated)

This library is deprecated, because another implementation exists and is more reliable: the **Facebook PHP-WebDriver** implementation

This library won't be maintained anymore.

Description
-----------

[](#description)

**PHP client and Behat extension**

[![Build status](https://camo.githubusercontent.com/aae2dfbec22c6351d247a10ad3dc83cadd6702079a648eda487726e7586e1afc/68747470733a2f2f7472617669732d63692e6f72672f616c6578616e64726573616c6f6d652f7068702d7765626472697665722e706e67)](https://travis-ci.org/alexandresalome/php-webdriver) [![Latest stable version](https://camo.githubusercontent.com/e64e0305fcb7ebd2f595392531701a4e83f8ab945cb3819508c247b5b8e0a130/68747470733a2f2f706f7365722e707567782e6f72672f616c6578616e64726573616c6f6d652f7068702d7765626472697665722f762f737461626c652e706e67)](https://packagist.org/packages/alexandresalome/php-webdriver) [![Total Downloads](https://camo.githubusercontent.com/4b1dcd36bbdaa8e7827ae1b3547e1a84d0a928c691d0ee898f547490dc09f7ad/68747470733a2f2f706f7365722e707567782e6f72672f616c6578616e64726573616c6f6d652f7068702d7765626472697665722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/alexandresalome/php-webdriver)

This library provides 2 things:

- A library with a proper API to manipulate a WebDriver instance
- A Behat extension to ease testing through a browser

**WebDriver** was initiated by Selenium-group and consists of a Restful API to manipulate a browser remotely (cookies, forms, DOM inspection, screenshots...).

This library provides a PHP interface for WebDriver server manipulation:

```
$client  = new WebDriver\Client('http://localhost:4444');
$browser = $client->createBrowser('firefox');

$browser->open('http://google.fr');
$browser->element(By::name('q'))->type('Hello');
$browser->element(By::css('input[type=submit]'))->click();
```

Documentation
-------------

[](#documentation)

- **The library**
    - [The Client object](doc/client.rst)
    - [The Browser object](doc/browser.rst)
    - [Crawling the page](doc/elements.rst)
    - [Using mouse](doc/mouse.rst)
    - [Cookies](doc/cookies.rst)
- **Behat extension**
    - [Behat extension](doc/behat.rst)
- [Testing](doc/tests.rst)

Installation
------------

[](#installation)

Add the library to your **composer.json**:

```
{
    "require": {
        "alexandresalome/php-webdriver": "~0.7"
    }
}
```

Changelog
---------

[](#changelog)

**v0.9**

- Alert messages

**v0.8**

- *Behat* new steps for form assertions
- Maximize window for testing

**v0.7**

- Manipulate windows size and position
- Execute code asynchronously: `$browser->executeAsync('...')`
- Test if 2 elements are equals: `$element->equals($otherElement)`
- *Behat* new steps: I move forward, I move back

**v0.6**

- Cleanup Behat sentences
- Repeat up to 5 time a test before failing
- Tests and integration trough travis-ci.org
- **BC break**: **I should see 3 xpath elements "//a"** has been removed in favor of **I should see 3 "xpath=//a"**
- **BC break**: **I click on xpath "//a"** has been removed in favor of **I click on "xpath=//a"**

**v0.5**

- New methods to move mouse: `$browser->moveTo()` and `$element->moveTo()`: moves mouse to absolute or relative position
- `$browser->getText()`: returns text of the browser
- *Behat*
    - New step: *I move mouse to "css=h1"*

**v0.4**

- `timeout` is now configurable in Behat extension

**v0.3**

- New method to test if an element is displayed (`$element->isDisplayed()`)
- *Behat*
    - Add a timeout spin on step `I should not see "some text"`

**v0.2**

- new element method on element `$element->getElement($by)`
- *Behat*
    - Provide a context for Behat testing

**v0.1**

- Cookie management
- Element crawling
- Javascript methods
- Client &amp; Browser management

### References

[](#references)

- WebDriver JSON Wire Protocol:
- Selenium downloads:

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~16 days

Total

18

Last Release

4389d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.3

v0.6.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c6be58ec4620ddbcc6f95bf7353365dc7ff796c004c70369333aee6125eb309?d=identicon)[alexandresalome](/maintainers/alexandresalome)

---

Top Contributors

[![OwlyCode](https://avatars.githubusercontent.com/u/1631270?v=4)](https://github.com/OwlyCode "OwlyCode (4 commits)")[![clemherreman](https://avatars.githubusercontent.com/u/272812?v=4)](https://github.com/clemherreman "clemherreman (1 commits)")[![juliendidier](https://avatars.githubusercontent.com/u/665837?v=4)](https://github.com/juliendidier "juliendidier (1 commits)")[![mickaelandrieu](https://avatars.githubusercontent.com/u/1247388?v=4)](https://github.com/mickaelandrieu "mickaelandrieu (1 commits)")

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/alexandresalome-php-webdriver/health.svg)

```
[![Health](https://phpackages.com/badges/alexandresalome-php-webdriver/health.svg)](https://phpackages.com/packages/alexandresalome-php-webdriver)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)[liuggio/fastest

Simple parallel testing execution... with some goodies for functional tests.

4825.6M26](/packages/liuggio-fastest)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
