You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, according to previous community reports about it, Selenium 3 should work fine when using Chrome, but the new Firefox driver is not yet feature complete.
Running our CI against Selenium 3 is on my TODO list.
At Instaclick, we're drifting towards stability (rather than bleeding edge), thus, the infrequent updates to our OSS repos and forks.
Short-term it may be quicker to submit a PR to to instaclick/php-webdriver. Long-term minkphp\MinkSelenium2Driver should consider switching to a webdriver binding that's more actively maintained given that changes to the JSON Wire Protocol are becoming more frequent and likely to break backwards compatibility.
I've got a mostly-usable version of mink2selenium working with facebook/webdriver, although I'm not actively working on it at the moment (currently sticking with selenium 2).
I think we should revisit this topic and revive any PR needing it (see #263). We can even release major version of MinkSelenium2Driver with different PHP version requirements without need to release Mink 2.0.
We can create branch 1.3 branch from current master that should serve as bugfix branch for all 1.3.x releases, but master branch would become 2.x release.
Reacted by André R., Nico Haase, Damian Mooyman, Usman, nirbhaypatil, Benoit GALATI and versedi
In instaclick/php-webdriver@be87042, @robocoder added support for the changed behaviour of selenium. Is there any chance to get this into a new release of the driver soon?
Supporting Selenium 3 fully is something we want to do. But using the W3C API directly to talk to the Firefox driver requires having support for it in the webdriver library we use. I know they started the work on it. I opened an issue to get details about their plan: instaclick/php-webdriver#84
Is there anything we can do to help with this, or to raise the priority of this? Someone we should email, or an issue to vote up or something? Any practical help we could provide?
Not having Behat able to use selenium 3 is an inconvenience now, but will soon become a real problem as we get further and further behind on the versions of browsers we can automatically test.
@mooragor using Selenium 3 with Chrome works fine. What is not working fine is running Firefox with Selenium 3, because the new geckodriver, because it does not speak the same protocol (the W3C WebDriver spec is heavily inspired by the JsonWire WebDriver protocol of Selenium, but it is not the same).
Given that Selenium 3 ships with a translation layer between both protocols, I will first try to get things working when using it (I still have a few failures there).
But native support for W3C webdriver requires updating the SDK first, and I don't know what the instaclick resources are on this topic. I suggest you to subscribe to the issue linked in my previous comment to see whether they give some info about it.
FYI we're open to transferring instaclick/php-webdriver over to minkphp org if that improves ongoing maintenance and in particular, increases traction on resolving the Selenium 3 issue as broad vendor support is coming:
I've looked at https://github.com/facebook/php-webdriver (if we'll switch to that) and it says: This library is compatible with Selenium server version 2.x and 3.x. It implements the JsonWireProtocol, which is currently supported by the Selenium server and will also implement the W3C WebDriver specification in the future., however the future date isn't defined and PHP 5.6 minimum would force to to release major driver version. That might result in drivers require newer PHP version, than Mink itself, which might not be a good idea.
@aik099 , I have used the mink drivers with php 7 , seems to work the same way as it does with php 5.6 however I've only done a few dozen tests so far.
@tractorcow Something I've found that works well in one of our client sites which we use chromedriver with selenium was to use the latest version from their servers since Travis seems to install the latest chrome if you use their Chrome addon. It tends to be more inline with the current Chrome version than those via apt-get.
Thanks @UndefinedOffset , I've been using chromedriver directly without selenium at all and have had a lot of success so far. :) Thanks for the snippet I'll definitely use it.
Activity
stof commentedon Dec 28, 2016
Well, according to previous community reports about it, Selenium 3 should work fine when using Chrome, but the new Firefox driver is not yet feature complete.
Running our CI against Selenium 3 is on my TODO list.
andrerom commentedon Dec 28, 2016
This is indeed Firefox, will check with chrome, feel free to close if test passes.
JoaoGFarias commentedon Jan 9, 2017
Since Selenium 3 now supports Safari (version 10), would be good to test against it as well.
stof commentedon Jan 9, 2017
@JoaoGFarias see #257 for discussions about the CI setup
tractorcow commentedon Sep 8, 2017
https://github.com/instaclick/php-webdriver doesn't seem to support selenium 3, so perhaps a shift to something like https://github.com/facebook/php-webdriver?
tractorcow commentedon Sep 8, 2017
For reference I have been testing with firefox and geckodriver, and have had some partial success.
NicoHaase commentedon Sep 29, 2017
instaclick/php-webdriver#80 should give another hint why any support of Selenium 3.5 is now really neccessary
tractorcow commentedon Oct 1, 2017
Yes that is the one issue I had with that driver. Perhaps instaclick will update to support both 2.x and 3.x?
aik099 commentedon Oct 2, 2017
@tawfekov , you can open at https://github.com/instaclick/php-webdriver/issues as well.
robocoder commentedon Oct 3, 2017
At Instaclick, we're drifting towards stability (rather than bleeding edge), thus, the infrequent updates to our OSS repos and forks.
Short-term it may be quicker to submit a PR to to
instaclick/php-webdriver. Long-termminkphp\MinkSelenium2Drivershould consider switching to a webdriver binding that's more actively maintained given that changes to the JSON Wire Protocol are becoming more frequent and likely to break backwards compatibility.tractorcow commentedon Oct 3, 2017
I've got a mostly-usable version of mink2selenium working with facebook/webdriver, although I'm not actively working on it at the moment (currently sticking with selenium 2).
https://github.com/open-sausages/MinkSelenium2Driver/commits/master
I gave up due to incompatibilities between selenium 3 and the geckodriver (issues with mousepointer APIs being incompatible).
At my most recent commit I'd attempted to fix, but selenium still complains about unknown actions.
It works fine with chrome of course. :)
tractorcow commentedon Oct 3, 2017
See SeleniumHQ/selenium#3382, which I believe MAY be the issue I'm struggling with.
aik099 commentedon Oct 4, 2017
@stof , in past we've reviewed possibility to switch to https://github.com/facebook/php-webdriver, but blocking moment was fact, that MinkSelenium2Driver works with PHP 5.3+, but https://github.com/facebook/php-webdriver require PHP 5.6+.
I think we should revisit this topic and revive any PR needing it (see #263). We can even release major version of MinkSelenium2Driver with different PHP version requirements without need to release Mink 2.0.
We can create branch 1.3 branch from current
masterthat should serve as bugfix branch for all 1.3.x releases, butmasterbranch would become 2.x release.tractorcow commentedon Oct 4, 2017
That sounds great @aik099
NicoHaase commentedon Oct 5, 2017
In instaclick/php-webdriver@be87042, @robocoder added support for the changed behaviour of selenium. Is there any chance to get this into a new release of the driver soon?
10 remaining items
NicoHaase commentedon Dec 5, 2017
@mooragor I started running my tests using Chrome, as this still works. But for the long run, I'd love to not be fixed on this :(
stof commentedon Jan 7, 2018
Supporting Selenium 3 fully is something we want to do. But using the W3C API directly to talk to the Firefox driver requires having support for it in the webdriver library we use. I know they started the work on it. I opened an issue to get details about their plan: instaclick/php-webdriver#84
mooragor commentedon Jan 7, 2018
Is there anything we can do to help with this, or to raise the priority of this? Someone we should email, or an issue to vote up or something? Any practical help we could provide?
Not having Behat able to use selenium 3 is an inconvenience now, but will soon become a real problem as we get further and further behind on the versions of browsers we can automatically test.
stof commentedon Jan 7, 2018
@mooragor using Selenium 3 with Chrome works fine. What is not working fine is running Firefox with Selenium 3, because the new geckodriver, because it does not speak the same protocol (the W3C WebDriver spec is heavily inspired by the JsonWire WebDriver protocol of Selenium, but it is not the same).
Given that Selenium 3 ships with a translation layer between both protocols, I will first try to get things working when using it (I still have a few failures there).
But native support for W3C webdriver requires updating the SDK first, and I don't know what the instaclick resources are on this topic. I suggest you to subscribe to the issue linked in my previous comment to see whether they give some info about it.
mooragor commentedon Jan 8, 2018
Will do - many thanks!
robocoder commentedon Jan 8, 2018
FYI we're open to transferring
instaclick/php-webdriverover to minkphp org if that improves ongoing maintenance and in particular, increases traction on resolving the Selenium 3 issue as broad vendor support is coming:https://w3c.github.io/webdriver/results/html/all.html
aik099 commentedon Jan 9, 2018
I've looked at https://github.com/facebook/php-webdriver (if we'll switch to that) and it says:
This library is compatible with Selenium server version 2.x and 3.x. It implements the JsonWireProtocol, which is currently supported by the Selenium server and will also implement the W3C WebDriver specification in the future., however thefuturedate isn't defined and PHP 5.6 minimum would force to to release major driver version. That might result in drivers require newer PHP version, than Mink itself, which might not be a good idea.Implementing W3C Specificiation compliance for IE driver
joejoseph00 commentedon Jan 19, 2018
@aik099 , I have used the mink drivers with php 7 , seems to work the same way as it does with php 5.6 however I've only done a few dozen tests so far.
UndefinedOffset commentedon Jan 23, 2018
@tractorcow Something I've found that works well in one of our client sites which we use chromedriver with selenium was to use the latest version from their servers since Travis seems to install the latest chrome if you use their Chrome addon. It tends to be more inline with the current Chrome version than those via apt-get.
tractorcow commentedon Jan 23, 2018
Thanks @UndefinedOffset , I've been using chromedriver directly without selenium at all and have had a lot of success so far. :) Thanks for the snippet I'll definitely use it.
In case anyone is interested my facebook/webdriver mink extension is at https://github.com/open-sausages/MinkFacebookWebDriver currently (forked from this repo).
individual-it commentedon May 1, 2018
@stof the trick with
enablePassThrough falsedoes not work any-more. Selenium 3.9.0 removed passthrough mode for the server. https://github.com/SeleniumHQ/selenium/blob/master/java/CHANGELOGjoejoseph00 commentedon May 1, 2018
we're sticking with older versions of selenium, it's working well. 2.5.3.1 for firefox and 3.5.3 for chrome
selenium/standalone-chrome-debug:3.5.3-boron
and
selenium/standalone-firefox-debug:2.53.1-beryllium
for IE11 we're using 3.5.0
using mink drivers
First composer.json , then composer.lock
stof commentedon Sep 24, 2018
I created #293 to track the work on support the W3C webdriver protocol.
I'm closing this issue as Selenium 3 is supported.