2017 © Pedro Peláez
 

library mink

Browser controller/emulator abstraction for PHP

image

behat/mink

Browser controller/emulator abstraction for PHP

  • Sunday, June 24, 2018
  • by everzet
  • Repository
  • 42 Watchers
  • 1078 Stars
  • 14,566,427 Installations
  • PHP
  • 588 Dependents
  • 2 Suggesters
  • 213 Forks
  • 67 Open issues
  • 22 Versions
  • 7 % Grown

The README.md

Mink

Latest Stable Version Latest Unstable Version Total Downloads CI License, (*1)

Usage Example

``` php <?php, (*2)

use Behat\Mink\Mink, Behat\Mink\Session, Behat\Mink\Driver\GoutteDriver, Behat\Mink\Driver\Goutte\Client as GoutteClient;, (*3)

$startUrl = 'http://example.com';, (*4)

// init Mink and register sessions $mink = new Mink(array( 'goutte1' => new Session(new GoutteDriver(new GoutteClient())), 'goutte2' => new Session(new GoutteDriver(new GoutteClient())), 'custom' => new Session(new MyCustomDriver($startUrl)) ));, (*5)

// set the default session name $mink->setDefaultSessionName('goutte2');, (*6)

// visit a page $mink->getSession()->visit($startUrl);, (*7)

// call to getSession() without argument will always return a default session if has one (goutte2 here) $mink->getSession()->getPage()->findLink('Downloads')->click(); echo $mink->getSession()->getPage()->getContent();, (*8)

// call to getSession() with argument will return session by its name $mink->getSession('custom')->getPage()->findLink('Downloads')->click(); echo $mink->getSession('custom')->getPage()->getContent();, (*9)

// this all is done to make possible mixing sessions $mink->getSession('goutte1')->getPage()->findLink('Chat')->click(); $mink->getSession('goutte2')->getPage()->findLink('Chat')->click();, (*10)


Install Dependencies -------------------- ``` bash $> curl -sS https://getcomposer.org/installer | php $> php composer.phar install

Contributors

The Versions

24/06 2018

dev-master

9999999-dev http://mink.behat.org/

Browser controller/emulator abstraction for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

testing web browser

07/01 2018

dev-phpunit_6

dev-phpunit_6 http://mink.behat.org/

Browser controller/emulator abstraction for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

testing web browser

03/10 2016

dev-2-architecture-changes

dev-2-architecture-changes http://mink.behat.org/

Browser controller/emulator abstraction for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

testing web browser

05/03 2016

v1.7.1

1.7.1.0 http://mink.behat.org/

Browser controller/emulator abstraction for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

testing web browser

20/09 2015

v1.7.0

1.7.0.0 http://mink.behat.org/

Browser controller/emulator abstraction for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

testing web browser

04/02 2015

v1.6.1

1.6.1.0 http://mink.behat.org/

Browser controller/emulator abstraction for PHP

  Sources   Download

MIT

The Requires

 

testing web browser

26/09 2014

v1.6.0

1.6.0.0 http://mink.behat.org/

Web acceptance testing framework for PHP 5.3

  Sources   Download

MIT

The Requires

 

testing web browser

14/04 2013

v1.5.0

1.5.0.0 http://mink.behat.org/

Web acceptance testing framework for PHP 5.3

  Sources   Download

MIT

The Requires

 

testing web browser

02/03 2013

v1.4.3

1.4.3.0 http://mink.behat.org/

Web acceptance testing framework for PHP 5.3

  Sources   Download

MIT

The Requires

 

testing web browser

13/02 2013

v1.4.2

1.4.2.0 http://mink.behat.org/

Web acceptance testing framework for PHP 5.3

  Sources   Download

MIT

The Requires

 

testing web browser

10/02 2013

v1.4.1

1.4.1.0 http://mink.behat.org/

Web acceptance testing framework for PHP 5.3

  Sources   Download

MIT

The Requires

 

testing web browser

21/12 2011