Mercurial > hg > cmmr2012-drupal-site
diff vendor/behat/mink-selenium2-driver/README.md @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/behat/mink-selenium2-driver/README.md Thu Jul 05 14:24:15 2018 +0000 @@ -0,0 +1,61 @@ +Mink Selenium2 (webdriver) Driver +================================= +[](https://packagist.org/packages/behat/mink-selenium2-driver) +[](https://packagist.org/packages/behat/mink-selenium2-driver) +[](https://packagist.org/packages/behat/mink-selenium2-driver) +[](https://travis-ci.org/minkphp/MinkSelenium2Driver) +[](https://scrutinizer-ci.com/g/minkphp/MinkSelenium2Driver/) +[](https://scrutinizer-ci.com/g/minkphp/MinkSelenium2Driver/) +[](https://packagist.org/packages/behat/mink-selenium2-driver) + +Usage Example +------------- + +``` 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](https://github.com/Behat/MinkExtension-example) for an executable example. + +Installation +------------ + +``` json +{ + "require": { + "behat/mink": "~1.5", + "behat/mink-selenium2-driver": "~1.1" + } +} +``` + +``` bash +$> curl -sS http://getcomposer.org/installer | php +$> php composer.phar install +``` + +Copyright +--------- + +Copyright (c) 2012 Pete Otaqui <pete@otaqui.com>. + +Maintainers +----------- + +* Christophe Coevoet [stof](https://github.com/stof) +* Pete Otaqui [pete-otaqui](http://github.com/pete-otaqui)