python - Selenium Setting Window Size in Chrome Fails with Version 56.0.2924.87 -
i using selenium automate ui testing google chrome. part of testing, resize windows several times during suite.
i using robotframework's selenium2library job done following 2 keywords:
set window size | 1080 | 800 maximize browser window
which thin wrappers around python selenium functions of same name. time in last few days, tests involve window resizing began failing, , think culprit newest version of chrome.
the error:
webdriverexception: message: unknown error: cannot automation extension unknown error: page not found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
when tried altering screen size with:
driver.execute_script("window.resizeto({},{})".format(width, height))
i no response @ (no error or change window size)
does have workaround this? important keep suite in chrome, , need resize during test if @ possible.
thanks,
joe
which version of chromedriver use? problem happened me before upgraded version 2.28 along update of chrome v57 (previously used 2.26 , error same message yours appeared).
Comments
Post a Comment