PHPackages                             bhittani/web-driver - 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. bhittani/web-driver

ActiveLibrary[Testing &amp; Quality](/categories/testing)

bhittani/web-driver
===================

A convenience wrapper around facebook's php-webdriver

0.6.0(4y ago)0971MITPHPPHP &gt;=5.6CI failing

Since May 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kamalkhan/web-driver)[ Packagist](https://packagist.org/packages/bhittani/web-driver)[ Docs](https://github.com/kamalkhan/web-driver)[ RSS](/packages/bhittani-web-driver/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (6)Versions (7)Used By (1)

Web Driver [![Build Status](https://camo.githubusercontent.com/4173f1a943340ba2ef6af0d0641f5cc4519c3edf645c77ccde43a05bd5f22409/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b616d616c6b68616e2f7765622d6472697665722f6d61696e3f7374796c653d666c61742d737175617265)](https://github.com/kamalkhan/web-driver) [![Total Downloads](https://camo.githubusercontent.com/a0414ebf776aacb224600ce912790417408945ea881c012fb1dfef71a6733e20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6268697474616e692f7765622d6472697665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bhittani/web-driver) [![MIT License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)
=============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#web-driver---)

Run and/or control a web driver programmatically.

- [Requirements](#requirements)
- [Install](#install)
    - [Install chrome driver](#install-chrome-driver)
    - [Install phantomjs driver](#install-phantomjs-driver)
- [Usage](#usage)
    - [Chrome Web Driver](#chrome-web-driver)
    - [Phantomjs Web Driver](#phantomjs-web-driver)
- [API](#api)
    - [Example](#example)
- [Advanced](#advanced)
    - [TODO](#todo)
- [Changelog](#changelog)
- [Testing](#testing)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6.4

Install
-------

[](#install)

You may install this package using [composer](https://getcomposer.org).

```
$ composer require bhittani/web-driver --prefer-dist
```

### Install chrome driver

[](#install-chrome-driver)

```
$ vendor/bin/install-chrome-driver
```

### Install phantomjs driver

[](#install-phantomjs-driver)

```
$ vendor/bin/install-phantomjs-driver
```

Usage
-----

[](#usage)

This package conveniently wraps the [Facebook's PHP Web Driver](https://github.com/php-webdriver/php-webdriver) and by default offers drivers for chrome and phantomjs.

### Chrome Web Driver

[](#chrome-web-driver)

First ensure you have installed the [chrome driver](#install-chrome-driver).

```
