Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading instructions related to Mink #4

Open
stof opened this issue Oct 5, 2013 · 0 comments
Open

Misleading instructions related to Mink #4

stof opened this issue Oct 5, 2013 · 0 comments
Assignees

Comments

@stof
Copy link
Contributor

stof commented Oct 5, 2013

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.
@ghost ghost assigned Halleck45 Oct 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants