Draft: Add verification of response in case of unknown command response #117
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes the behavior for version 4.3 of selenium-hub and node-chrome
based on my findings https://www.selenium.dev/documentation/webdriver/elements/interactions/#additional-validations, the version 4 of selenium/webdriver the
click()doesn't required amoveto()call to ensure the element is in viewport.Previous version required to have the element in view port and for that the
moveto()was used. But in version 4 the commandmovetois missing andclick()behaves like 2 in 1Possible Replacements
There is
moveToElement. I tested several payloads but i always receive the:{ "value": { "error": "invalid argument", "message": "Unable to determine element locating strategy", "stacktrace": "" } }So this is a dead end for me atm.
Tested with
selenium/hub:4.3.0-20220726
selenium/node-chrome:4.3.0-20220726
..also
I was considering changes in the
\WebDriver\Session, to move the methodmoveto()frommethods()-->obsoleteMethods(). While this seems to be a good approach, this will introduce breaking changes and if we leave the changes only inlib/WebDriver/AbstractWebDriver.phpis backwards compatible.I am open to suggestions