-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Win 10 Ie11 : Unable to set/get window size upgrading from IEDriver 3.4 to IEDriver 3.6 #4937
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
Comments
Somewhat related to this, is there a reason Selenium doesn't raise an exception when a driver returns such an error? Browsing through the code it seems that an error should be raised by ErrorHandler.check_response() which ought to be called by WebDriver.execute() that WebDriver.get_window_size() ought to call. Based on the above description, it seems no error is raised and invalid data is simply returned to the user. |
It looks like Python bindings implement incorrect commands for getting/setting window size: Command.W3C_GET_WINDOW_SIZE:
('GET', '/session/$sessionId/window/size'),
Command.W3C_SET_WINDOW_SIZE:
('POST', '/session/$sessionId/window/size'), No such commands are defined by specification, so bindings should instead fallback to rect commands. Just like Ruby bindings do. |
@pekkaklarck Interesting, can you please raise a separate issue for that? |
Fixed in ffce538, will be in the next release. I'll look at the other issue you added |
On
Windows 10 64 bit full stack updated
With
Selenium 3.6
IEDriver 3.6
this
will not change window size and this
print(browser.get_window_size())
returns
On Chrome set_window_size works and get_window_size returns the right dimension.
This is a regression , because with IEDriver 3.4, it works without error also on IE11.
The text was updated successfully, but these errors were encountered: