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

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

bhittani/web-browser
====================

A convenience wrapper around laravel/dusk

0.2.0(4y ago)032[1 issues](https://github.com/kamalkhan/web-browser/issues)MITPHPPHP &gt;=7.2

Since Jun 11Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (3)Used By (0)

Web Browser [![Build Status](https://camo.githubusercontent.com/221e1d1a5a5fef282c25c5735dc077d31104423951d1aa9fb361cd6daf2ca18d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6b616d616c6b68616e2f7765622d62726f777365722f6d61696e3f7374796c653d666c61742d737175617265)](https://github.com/kamalkhan/web-browser) [![Total Downloads](https://camo.githubusercontent.com/bdca8f219eea98a8db658f434f0c04e4511d3d740c8f588b06c081adfae60bdf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6268697474616e692f7765622d62726f777365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bhittani/web-browser) [![MIT License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)
====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#web-browser---)

Programmatically navigate/test the web.

- [Requirements](#requirements)
- [Install](#install)
    - [Install chrome driver](#install-chrome-driver)
    - [Install phantomjs driver](#install-phantomjs-driver)
- [Usage](#usage)
    - [Chrome](#chrome)
    - [Phantomjs](#phantomjs)
- [API](#api)
    - [Example](#example)
    - [Testing](#testing)
        - [PHPUnit](#phpunit)
- [Changelog](#changelog)
- [Testing](#testing)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

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

[](#requirements)

- PHP &gt;= 7.2

Install
-------

[](#install)

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

```
$ composer require bhittani/web-browser
```

### 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 [laravel/dusk](https://github.com/laravel/dusk).

### Chrome

[](#chrome)

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

```
