54 lines
1.9 KiB
Markdown
54 lines
1.9 KiB
Markdown
![]() |
Mink Goutte Driver
|
||
|
==================
|
||
|
|
||
|
[](https://packagist.org/packages/behat/mink-goutte-driver)
|
||
|
[](https://packagist.org/packages/behat/mink-goutte-driver)
|
||
|
[](https://packagist.org/packages/behat/mink-goutte-driver)
|
||
|
[](https://travis-ci.org/Behat/MinkGoutteDriver)
|
||
|
[](https://scrutinizer-ci.com/g/Behat/MinkGoutteDriver/)
|
||
|
[](https://scrutinizer-ci.com/g/Behat/MinkGoutteDriver/)
|
||
|
[](https://packagist.org/packages/behat/mink-goutte-driver)
|
||
|
|
||
|
Usage Example
|
||
|
-------------
|
||
|
|
||
|
``` php
|
||
|
<?php
|
||
|
|
||
|
use Behat\Mink\Mink,
|
||
|
Behat\Mink\Session,
|
||
|
Behat\Mink\Driver\GoutteDriver,
|
||
|
Behat\Mink\Driver\Goutte\Client as GoutteClient;
|
||
|
|
||
|
$startUrl = 'http://example.com';
|
||
|
|
||
|
$mink = new Mink(array(
|
||
|
'goutte' => new Session(new GoutteDriver(new GoutteClient($startUrl))),
|
||
|
));
|
||
|
|
||
|
$mink->getSession('goutte')->getPage()->findLink('Chat')->click();
|
||
|
```
|
||
|
|
||
|
Installation
|
||
|
------------
|
||
|
|
||
|
``` json
|
||
|
{
|
||
|
"require": {
|
||
|
"behat/mink": "~1.5",
|
||
|
"behat/mink-goutte-driver": "~1.0"
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
``` bash
|
||
|
$> curl -sS https://getcomposer.org/installer | php
|
||
|
$> php composer.phar install
|
||
|
```
|
||
|
|
||
|
Maintainers
|
||
|
-----------
|
||
|
|
||
|
* Konstantin Kudryashov [everzet](http://github.com/everzet)
|
||
|
* Other [awesome developers](https://github.com/Behat/MinkGoutteDriver/graphs/contributors)
|