Answer the question
In order to leave comments, you need to log in
What are the additional methods for behat+mink?
Good day.
I recently began to master behat and mink and now I came across the following problem.
I use behat + mink + minkExtension, minkExtension itself contains a bunch of methods, but in the course of writing scripts, I had to add my own.
If you add methods to Behat\MinkExtension\Context\MinkContext, then everything works fine. _But I don't understand how to make the methods pull from another file, such as FeatureContext.
Maybe someone here has worked with a similar one and can explain what I'm doing wrong.
Thank you.
Answer the question
In order to leave comments, you need to log in
Have you tried Codeception? There, the ability to add methods to your modules is provided and is quite transparently described in the documentation. The same Mink is used.
docs.behat.org/guides/2.definitions.html - everything is detailed here, all new steps are defined by default in the FeatureContext. If any of this does not work for you, then you need more information for debugging - look at the configuration, where you missed something.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question