Mink icon indicating copy to clipboard operation
Mink copied to clipboard

Class "Behat\Mink\Mink" not found

Open SeriousJ55 opened this issue 2 years ago • 5 comments

I installed everything properly. When I try to launch the "Usage Example," I get the error message "Class "Behat\Mink\Mink" not found."

I tried installing in many different ways and nothing worked. How to install?

SeriousJ55 avatar Oct 05 '23 14:10 SeriousJ55

Please specify the steps you've performed for Mink installing and the code you're using to run Mink.

Also, have you been able to perform the Composer Install step?

aik099 avatar Oct 06 '23 16:10 aik099

  1. I installed with composer: composer require behat/mink
  2. I ran the usage example code

SeriousJ55 avatar Oct 06 '23 16:10 SeriousJ55

Have you included the Composer autoload.php file ? https://getcomposer.org/doc/01-basic-usage.md#autoloading

stof avatar Oct 06 '23 20:10 stof

Yes, of course. Before the usage example code, I wrote the line include_once("path_to_mink_folder/vendor/autoload.php");

SeriousJ55 avatar Oct 07 '23 07:10 SeriousJ55

Had the same problem. Unfortunately, Mink comes WITHOUT a default driver installed. Annoying, but easy to fix.

humpataa avatar Jan 22 '24 14:01 humpataa