Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
25
core/vendor/behat/mink-goutte-driver/README.md
vendored
Executable file → Normal file
25
core/vendor/behat/mink-goutte-driver/README.md
vendored
Executable file → Normal file
|
@ -4,9 +4,9 @@ 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://travis-ci.org/minkphp/MinkGoutteDriver)
|
||||
[](https://scrutinizer-ci.com/g/minkphp/MinkGoutteDriver/)
|
||||
[](https://scrutinizer-ci.com/g/minkphp/MinkGoutteDriver/)
|
||||
[](https://packagist.org/packages/behat/mink-goutte-driver)
|
||||
|
||||
Usage Example
|
||||
|
@ -15,23 +15,28 @@ Usage Example
|
|||
``` php
|
||||
<?php
|
||||
|
||||
require "vendor/autoload.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))),
|
||||
'goutte' => new Session(new GoutteDriver(new GoutteClient())),
|
||||
));
|
||||
|
||||
$mink->getSession('goutte')->getPage()->findLink('Chat')->click();
|
||||
$session = $mink->getSession('goutte');
|
||||
$session->visit("http://php.net/");
|
||||
$session->getPage()->clickLink('Downloads');
|
||||
echo $session->getCurrentUrl() . PHP_EOL;
|
||||
```
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Add a file composer.json with content:
|
||||
|
||||
``` json
|
||||
{
|
||||
"require": {
|
||||
|
@ -41,6 +46,8 @@ Installation
|
|||
}
|
||||
```
|
||||
|
||||
(or merge the above into your project's existing composer.json file)
|
||||
|
||||
``` bash
|
||||
$> curl -sS https://getcomposer.org/installer | php
|
||||
$> php composer.phar install
|
||||
|
@ -49,5 +56,5 @@ $> php composer.phar install
|
|||
Maintainers
|
||||
-----------
|
||||
|
||||
* Konstantin Kudryashov [everzet](http://github.com/everzet)
|
||||
* Other [awesome developers](https://github.com/Behat/MinkGoutteDriver/graphs/contributors)
|
||||
* Christophe Coevoet [stof](https://github.com/stof)
|
||||
* Other [awesome developers](https://github.com/minkphp/MinkGoutteDriver/graphs/contributors)
|
||||
|
|
Reference in a new issue