protractor: Failed to maximize Chrome browser after Chrome update
Bug report
- Node Version:
6.2.2
- Protractor Version:
5.1.2
- Angular Version:
n/a
- Browser(s):
Chrome
- Operating System and Version
n/a
After updating to Google Chrome 60.0.3112.78 this morning, Protractor fails when trying to browser.driver.manage().window().maximize()
Error:
WebDriverError: unknown error: failed to change window state to maximized, current state is normal
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 23 (4 by maintainers)
Is it possible to reopen this issue as I am getting this issue on Chrome Version 63.0.3239.132 (Official Build) (64-bit) No trace to report, it just fails in java on the code line where driver.manage().window().maximize(); is called.
I got the same issue with Chrome 60 (chrome driver 2.30/2.31, Selenium 3.4, Ubuntu 17.04) in AT framework Codeception. As a workaround I have to specify window size in my suite config manually, e.g.
window_size: 1920 x 1080
(instead ofwindow_size: maximize
). BTW latest Firefox has similar issue, see https://github.com/mozilla/geckodriver/issues/820Hi i am using OS Sierra 10.13.6 with chrome driver 2.41& chrome version 70.0 and getting same error: selenium.common.exceptions.WebDriverException: Message: unknown error: failed to change window state to maximized, current state is normal
Just in case anyone else lands here -
I was able to reproduce the issue by starting Chromedriver directly (without going through webdriver-manager) so the problem almost certainly lies there.
I’ve logged https://bugs.chromium.org/p/chromedriver/issues/detail?id=1901
okay thank you so much 😃
@srujana13 so the workahead (Jugaad) is that we we remove “browser.manage().window.maximize()” from our OnPrepare block and add --start-maximized argument in ur chromeoptions. Hope this helps u . Also dnt use “browser.manage().window.maximize()” inside ur tests also
Getting the same error with MacOS High Sierra with Chrome Version 70.0.3538.67 (Official Build) (64-bit) after upgrading to ChromeDriver 2.43:
… raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: failed to change window state to maximized, current state is normal (Session info: chrome=70.0.3538.67) (Driver info: chromedriver=2.43.600229 (3fae4d0cda5334b4f533bede5a4787f7b832d052),platform=Mac OS X 10.13.6 x86_64)