I tried to maximize the onPreapre window with the following command:
browser.driver.manage().window().maximize();
But this does not maximize the window, and there are no errors in the selenium webdriver logs, it actually seems that the execution was successful -
Starting ChromeDriver 2.26.436421 (6c1a3ab469ad86fd49c8d97ede4a6b96a49ca5f6) on port 5814 Only local connections are allowed. 17:14:28.898 INFO - Done: [new session: Capabilities [{count=1, browserName=chrome, chromeOptions={args=[--no-sandbox, --test-type, --memory-metrics, --console, --crash-on-failure], prefs={download={directory_upgrade=true, default_directory=./Users/Idan/automation/tests/downloaded/, prompt_for_download=false}}}}]] 17:14:28.909 INFO - Executing: [set script timeout: 90000]) 17:14:28.910 INFO - Done: [set script timeout: 90000] 17:14:28.969 INFO - Executing: [maximise window]) 17:14:29.236 INFO - Done: [maximise window] 17:14:29.244 INFO - Executing: [maximise window]) 17:14:29.250 INFO - Done: [maximise window]
source share