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

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

Open
SeriousJ55 opened this issue Oct 5, 2023 · 5 comments
Open

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

SeriousJ55 opened this issue Oct 5, 2023 · 5 comments

Comments

@SeriousJ55
Copy link

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
Copy link
Member

aik099 commented Oct 6, 2023

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
Copy link
Author

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

@stof
Copy link
Member

stof commented Oct 6, 2023

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

@SeriousJ55
Copy link
Author

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

@humpataa
Copy link

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

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

4 participants