Can't maximize chrome window using Selenium Can't maximize chrome window using Selenium selenium selenium

Can't maximize chrome window using Selenium


You can try it with start-maximized flag:

capabilities: {  'browserName': 'chrome',  'chromeOptions': {    'args': ['start-maximized']  }}


I remember we had a similar issue - what we did is first set the size of the window and then maximize - don't remember exactly why did we apply this workaround, but it works for us:

browser.manage().window().setSize(1400, 900);browser.manage().window().maximize();


According to your log - you do maximization twice. Maybe the first time it is maximized, and after the second try it is restored down to default size