Reputation: 3
I don't know why I just can't use driver.maximize_window() to maximize window.It worked before .And Exception is : enter image description here
Upvotes: 0
Views: 1077
Reputation: 193348
While using crome driver it is recomended to maximize the Browser windown through ChromeOptions class as below:
ChromeOptions options = new ChromeOptions();
options.addArguments("start-maximized");
driver.get(url);
PS: This is the Java syntax, convert it accordingly.
Let me know if this helps you.
Upvotes: 0
Reputation: 967
Download chrome driver 2.28 from below path. This issue got fixed in this version
----------ChromeDriver v2.28 (2017-03-09)----------
Supports Chrome v55-57
Resolved issue 1625: Error: cannot get automation extension on Chrome57+ [['OS-All', 'Pri-1', 'merge-merged-2987']]
Resolved issue 1695: Chrome crashes on Linux32 bot [['OS-Linux', 'Pri-1']]
Resolved issue 1467: A hang occurs when an alert dialog is displayed on Chrome 52+ [['OS-All', 'Pri-2']]
Resolved issue 1688: Exported Netlog with --log-net-log is truncated [['OS-Linux', 'OS-Mac', 'Pri-2']]
Resolved issue 1388: find Elements is failing [['Pri-2']] .
https://chromedriver.storage.googleapis.com/index.html
Upvotes: 1