You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a few misleading explanations about Mink in the second ebook.
Mink is not a Behat extension. It is a browser emulator/controller abstraction created by the same team (it could even have been done in a separate organization and namespace if done today IMO, but the first version was more coupled to Behat). The extension for Behat is only MinkExtension (which integrates Mink into Behat)
The built-in browsing step definitions are not part of Mink but of MinkExtension
The phar installation method described in the doc is incomplete. It installs Mink but does not install MinkExtension, so it will not work (it needs another phar for this, not only Mink). See http://extensions.behat.org/mink/#through-phar (using it through composer is simpler)
The composer instructions are not installing the SahiDriver, so the example config using it is not enough. The composer config needs to be updated too
The code clicking on the button will give you a fatal error (thus breaking the Behat run instead of failing gracefully) in case the button is not found on the page (which is expected to happen before you implement the scenario) as $page->find() will reutrn null in this case.
The text was updated successfully, but these errors were encountered:
There is a few misleading explanations about Mink in the second ebook.
$page->find()
will reutrnnull
in this case.The text was updated successfully, but these errors were encountered: