Skip to main content

Install Mink and Mink Extension for Behat Projects

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.

Submitted by tgoswami on September 22, 2020

Tarun has 11+ years of experience in Quality Assurance in different domains like Banking, E-commerce, Health and Education.

About

At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.