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
{{ message }}
Repository navigation
moveto returns "unknown command" on v4.3.0 of chrome webdriver #118
One could say/relay me to MinkSelenium2Driver package discussion, but i still think this is something related to php-webdriver and its method support for webdrivers.
During "clickOnElement()" method, on webdriver the moveto and click() is called. php-webdriver throws exception during moveto() action, after POST http://127.0.0.1:4444/wd/hub/session/:sessionId/moveto, which is accepted by selenium-hub... it returns a response with error details "error": "command unknown"
I've created a Pull-request but i'm not 100% sure whether the approach is the right one (seems to be though) #117
You say that you tried with same versions? 🤔 Could it be that the your vendor folder still has the old package ? (remove all packages and reinstall / clean composer cache)
If you tried with newer version, then the only things that come to my mind is that the bug was reintroduced 😞
I would like to voice a small vote for what @justafish suggests: a semver intention to flag the BC.
Perhaps the PR is indeed not the right solution, there I defer to your team!
However, a semver promotion that removes the deprecated command would save our CI chain logs and make logs useful once again. Right now, we're left to wade through hundreds of thousands of lines that are being padded to 40x intended size because of barrage of org.openqa.selenium.UnsupportedCommandException
Thank you for your efforts! I know OSS can be a thankless job!
@robocoder can you provide some guidance here please if you're unwilling to remove the command to cause it to raise an exception? I understand the BC break concerns, but this is already broken for anyone who isn't using a > 1 year old release now
The minkphp/MinkSelenium2Driver@7aa0e14 commit made it possible for MinkSelenium2Driver to handle an attempt to call non-existing moveto command. The fix is available in the MinkSelenium2Driver v1.7.
Activity
Fixes #118 - partial reverts PR #67 - handling legacy webdriver 4xx r…
Saeven commentedon Nov 29, 2022
@slava-v I'm running into the same problem using:
Had you solved this? I get logs that look like:
justafish commentedon Dec 2, 2022
I've opened a PR to fix this #120
vasilake-v commentedon Dec 12, 2022
@Saeven
The issue was fixed for me with
instaclick/php-webdriver: 1.4.15So my setup is slightly different
container image: selenium/node-chrome: 4.3.0-20220726
composer.lockbehat.yml.distdocker-compose.ymlSaeven commentedon Dec 12, 2022
@slava-v I've tried your configuration just now, but it still unfortunately yields request failures:
vasilake-v commentedon Dec 15, 2022
@Saeven , that really looks strange.
You say that you tried with same versions? 🤔 Could it be that the your vendor folder still has the old package ? (remove all packages and reinstall / clean composer cache)
If you tried with newer version, then the only things that come to my mind is that the bug was reintroduced 😞
justafish commentedon Jan 11, 2023
Could this issue be re-opened please @robocoder ?
robocoder commentedon Jan 11, 2023
Re-opening for further investigation.
justafish commentedon Jan 12, 2023
Just to explain why I think #120 is the solution @robocoder -
moveTowas removed from Selenium in April 2021 as it's not compliant with the spec. Removing the command from this library will cause Mink to raise an exception that the command doesn't exist (rather than erroring out completely as it currently does) See https://github.com/minkphp/MinkSelenium2Driver/blob/master/src/Selenium2Driver.php#L800 which also references moveto as not being in the W3C WebDriver spec.I'd appreciate if you could explain why you don't think this should be removed? Thanks! 😸
robocoder commentedon Jan 12, 2023
I know the command is unsupported in the W3C spec but I can't ignore the BC aspect of this library.
justafish commentedon Jan 13, 2023
@robocoder could we make a 2.x.x release, otherwise what would your preferred solution be along the lines of?
Saeven commentedon Jan 19, 2023
I would like to voice a small vote for what @justafish suggests: a semver intention to flag the BC.
Perhaps the PR is indeed not the right solution, there I defer to your team!
However, a semver promotion that removes the deprecated command would save our CI chain logs and make logs useful once again. Right now, we're left to wade through hundreds of thousands of lines that are being padded to 40x intended size because of barrage of org.openqa.selenium.UnsupportedCommandException
Thank you for your efforts! I know OSS can be a thankless job!
Saeven commentedon Jan 25, 2023
@robocoder in case it helps, I've created a rig to easily reproduce the problem at https://github.com/Saeven/behat-moveto-test
justafish commentedon Jul 25, 2023
@robocoder can you provide some guidance here please if you're unwilling to remove the command to cause it to raise an exception? I understand the BC break concerns, but this is already broken for anyone who isn't using a > 1 year old release now
Fixes instaclick#118 - partial reverts PR instaclick#67 - handling le…
fixes instaclick#118 - remove obsolete moveto()
aik099 commentedon Mar 19, 2024
The minkphp/MinkSelenium2Driver@7aa0e14 commit made it possible for MinkSelenium2Driver to handle an attempt to call non-existing
movetocommand. The fix is available in the MinkSelenium2Driver v1.7.aik099 commentedon Mar 19, 2024
How you managed to get MinkSelenium2Driver working with Selenium 4?
For me
instaclick/php-webdriver1.x doesn't even connect to Selenium 4, because it can talk only JsonWireProtocol, but Selenium 4 is W3C only.Closes #137 - revert 99b3135 "fixes #118 - remove obsolete moveto()"