boga881 / mink-goutte-driver
Goutte driver for Mink framework
Installs: 418
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 52
Type:mink-driver
Requires
- php: >=7.2
- fabpot/goutte: ^4.0
- friends-of-behat/mink-browserkit-driver: ^1.4
Requires (Dev)
- mink/driver-testsuite: dev-master
- symfony/error-handler: ^4.4 || ^5.0
This package is auto-updated.
Last update: 2024-11-20 03:12:52 UTC
README
Usage Example
<?php require "vendor/autoload.php"; use Behat\Mink\Mink, Behat\Mink\Session, Behat\Mink\Driver\GoutteDriver, Goutte\Client as GoutteClient; $mink = new Mink(array( 'goutte' => new Session(new GoutteDriver(new GoutteClient())), )); $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:
{ "require": { "behat/mink": "^1.9", "behat/mink-goutte-driver": "^2.0" } }
(or merge the above into your project's existing composer.json file)
$> curl -sS https://getcomposer.org/installer | php $> php composer.phar install
Maintainers
- Christophe Coevoet stof
- Other awesome developers