Stars: 497
Forks: 152
Pull Requests: 213
Issues: 146
Watchers: 17
Last Updated: 2022-10-23 23:12:07
Selenium2 (webdriver) driver for Mink framework
License:
Languages: PHP
<?php
use Behat\Mink\Mink,
Behat\Mink\Session,
Behat\Mink\Driver\Selenium2Driver;
use Selenium\Client as SeleniumClient;
$browser = 'firefox';
$url = 'http://example.com';
$mink = new Mink(array(
'selenium2' => new Session(new Selenium2Driver($browser, null, $url)),
));
$mink->getSession('selenium2')->getPage()->findLink('Chat')->click();
Please refer to MinkExtension-example for an executable example.
{
"require": {
"behat/mink": "~1.5",
"behat/mink-selenium2-driver": "~1.1"
}
}
$> curl -sS https://getcomposer.org/installer | php
$> php composer.phar install
docker run -p 4444:4444 selenium/standalone-firefox:2.53.1
curl -L https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar > selenium-server-standalone-2.53.1.jar
java -jar selenium-server-standalone-2.53.1.jar
./vendor/bin/mink-test-server
composer require --dev phpunit/phpunit
./vendor/bin/phpunit -v --coverage-clover=coverage.clover
Copyright (c) 2012 Pete Otaqui [email protected].