minkphp / Mink

PHP web browser emulator abstraction
https://mink.behat.org/
MIT License
1.6k stars 278 forks source link

Class "Behat\Mink\Mink" not found #859

Open SeriousJ55 opened 11 months ago

SeriousJ55 commented 11 months ago

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?

aik099 commented 11 months ago

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?

SeriousJ55 commented 11 months ago
  1. I installed with composer: composer require behat/mink
  2. I ran the usage example code
stof commented 11 months ago

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

SeriousJ55 commented 11 months ago

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

humpataa commented 7 months ago

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