-
Notifications
You must be signed in to change notification settings - Fork 124
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
Provide fallbacks for getWindowRect and setWindowRect #26
Comments
See also d2843b0 |
AFAICT there are no such commands as the spec only lists |
Yeah, the spec only has those, but to be helpful there are a couple of places where we fall back to the original Selenium protocol (this is what the |
Oh I see, I did not understand previously. Sounds easy enough. |
It looks like there are also some test failures in Chrome on macOS: https://travis-ci.org/jonhoo/fantoccini/jobs/378871411#L873. My guess is that it's related to the window decorations causing an offset in the returned values (see https://github.com/SeleniumHQ/selenium/blob/6103ef6c923ea43c71779be9a05cc3a6248d1b53/javascript/node/selenium-webdriver/test/window_test.js#L125) |
Sadly these tests also fail when running on a machine with a tiling window manager :( |
@jonhoo I'm running into this with I'll probably mask the test failure in |
Could very well be — I've lost the context on this in the intervening years 😅 |
These should fall back to individual calls to (get/set)WindowSize + (get/set)WindowPosition if the Rect commands return "unknown command". See the commit that introduces rect to the selenium JS bindings: SeleniumHQ/selenium@6103ef6
/cc @phrohdoh
The text was updated successfully, but these errors were encountered: