behat/mink-goutte-driver
最新稳定版本:v2.0.0
Composer 安装命令:
composer require --dev behat/mink-goutte-driver
包简介
Goutte driver for Mink framework
README 文档
README
Deprecation
Given that the Goutte project is deprecated in favor of using the symfony/http-client and
symfony/browser-kit projects directly, this driver is deprecated in favor of
behat/mink-browserkit-driver and won't be updated anymore.
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
统计信息
- 总下载量: 39.92M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 305
- 点击次数: 1
- 依赖项目数: 370
- 推荐数: 9
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04