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

running minkselenium2 1.7 driver against selenium-Server-4.25 will not work on my local machine for debugging #395

Open
zanderFortinbras opened this issue Oct 2, 2024 · 8 comments

Comments

@zanderFortinbras
Copy link

No description provided.

@aik099
Copy link
Member

aik099 commented Oct 2, 2024

That is because this driver doesn't support the Selenium 4 server.

The 2 number in the driver name indicates that only the Selenium 2 server is supported. There is partial support for Selenium 3 (except for window opening/frames).

To use Selenium 4 server you need to use https://github.com/minkphp/webdriver-classic-driver driver (not released, but working).

@zanderFortinbras
Copy link
Author

what should we use in composer.json to support this new driver
Have you a sample yml file for webdriver classic
?

    "behat/behat": "v3.13.0",
    "behat/mink": "v1.10.0",
    "behat/mink-extension": "2.3.1",
    "behat/mink-browserkit-driver": "<10.0.0",
    "behat/mink-selenium2-driver" : "<20.0",

@zanderFortinbras
Copy link
Author

is there a basic sample project with yml and composer ?

Is it worth moving to this and then waiting for the release when we should just move to php-webdriver/webdriver

@aik099
Copy link
Member

aik099 commented Oct 3, 2024

what should we use in composer.json to support this new driver Have you a sample yml file for webdriver classic ?

    "behat/behat": "v3.13.0",
    "behat/mink": "v1.10.0",
    "behat/mink-extension": "2.3.1",
    "behat/mink-browserkit-driver": "<10.0.0",
    "behat/mink-selenium2-driver" : "<20.0",

You should:

  1. replace "behat/mink-extension": "2.3.1", with "friends-of-behat/mink-extension": "^2.5@dev" (The PR supporting that driver was just merged today;
  2. add "mink/webdriver-classic-driver": "^1.0@dev" (or maybe use "dev-master" if the proposed version won't work, because it wasn't released on Packagist)
  3. do the composer update to download new packages specified in the composer.json
  4. as for .behat.yml file you need to replace selenium2 with webdriver-classic (or webdriver_classic) and everything should continue to work (I've asked the driver developer for a sample file in Improve readme webdriver-classic-driver#19 ).

is there a basic sample project with yml and composer ?

No sample project.

Is it worth moving to this and then waiting for the release when we should just move to php-webdriver/webdriver

The mentioned package is WebDriver (talks to Selenium only, not to Mink/Behat). The mentioned https://github.com/minkphp/webdriver-classic-driver internally uses php-webdriver/webdriver.

@stof
Copy link
Member

stof commented Oct 4, 2024

you need friends-of-behat/mink-extension: ^2.8@dev (the 2.8.0 release is not yet done, hence the need for @dev for now) and mink/webdriver-classic-driver: ^1.0@dev in your dependencies to use the new driver in your behat+mink setup (the deprecated behat/mink-extension package does not support the new driver)

@zanderFortinbras
Copy link
Author

Thank you for help guys.

image

image

image

@stof
Copy link
Member

stof commented Oct 4, 2024

@zanderFortinbras that's not the namespace of the extension class

@zanderFortinbras
Copy link
Author

Thanks stof,
What should it be ?

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

3 participants