CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

"windowSize": "maximize" can't support chrome 59 version

Open tony204 opened this issue 9 years ago • 4 comments

   "windowSize": "maximize" can't support  chrome 59 version

if you user chrome 59 version , maximize or other windowsize can't support @DavertMik

tony204 avatar Jun 19 '17 06:06 tony204

Yes, I think this is a limitation of ChromeDriver and Chrome 59 Not sure how to overcome it. You can only pass the window-size argument to args for ChromeOptions to set the initial size for Chrome

DavertMik avatar Jun 20 '17 22:06 DavertMik

@DavertMik @tony204 I think we can try this hack: Execute script in browser to get information about screen resolution:

return screen.width;
return screen.height;

Then pass them to windowHandleSize function

Here is a demo how this scripts works in browser: https://jsfiddle.net/8q67em27/1/

APshenkin avatar Jun 25 '17 21:06 APshenkin

@DavertMik @APshenkin i update the source code,upload the 3 files WebDriverIO.js , SeleniumWebdriver.js, Appium.js that you guys commit to master, but it also didn't fix the chrome 59 maximize problem. Can you confirm is it any steps maybe i missed?

tony204 avatar Jul 06 '17 01:07 tony204

@DavertMik @APshenkin : I am facing issue with Window.Maximize() below is the ticket https://github.com/Codeception/CodeceptJS/issues/892 please help me,as its failing my automation build first test and thus results in failed build

ninpop25 avatar Jan 27 '18 07:01 ninpop25