Earlier we have discussed Mink. There is one more library Behat MinkExtension, Which is an integration layer between Behat 3.0+ and Mink 1.4+ and it provides:
- Additional services for Behat (Mink, Sessions, Drivers).
- Behat\MinkExtension\Context\MinkAwareContext which provides a Mink instance for your contexts.
- Base Behat\MinkExtension\Context\MinkContext context which provides base step definitions and hooks for your contexts or subcontexts. Or it could be even used as context on its own.
To install Mink use below command
$ composer require --dev behat/mink
To install Mink extension use below command
$ composer require --dev behat/mink-extension