Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Cannot retrieve contributors at this time
BrowserKitDriver provides a bridge for the Symfony BrowserKit component.
BrowserKit is a browser emulator provided by the Symfony project.
BrowserKitDriver is a pure PHP library available through Composer:
$ composer require behat/mink-browserkit-driver
The BrowserKit component only provides an abstract implementation. The
actual implementation is provided by other projects, like Goutte
or the Symfony HttpKernel component.
If you are using Goutte, you should use the special :doc:`/drivers/goutte`
which ensures full compatibility for Goutte due to an edge case in Goutte.
In order to talk with BrowserKit, you should instantiate a
$browserkitClient = // ...
$driver = new \Behat\Mink\Driver\BrowserKitDriver($browserkitClient);
Press h to open a hovercard with more details.