Install Mink and Mink Extension for Behat Projects

Profile picture for user devraj

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

Check latest version of Mink Here and latest version of Mink Extension here. You can also check at https://semver.mwl.be/ by typing behat/mink for mink and behat/mink-extenstion for mink extension.