Problem with changing browser window size
I use one instance of the browser. When I run multiple tests, during the first test the browser window is maximized. At the start of the second test, the browser window size changes to the default size. At the start of the third test, the window is maximized and at the start of the fourth test, window size changes to the default size...etc.
This occurred when using the latest version of WebDriver - GeckoDriver 0.18.0. With previous version of WebDriver, the browser window size has remained maximized during all tests.
And I use the latest version of web browser Firefox 55.0.3.
With browser Chrome or IE it works well.
All test scripts contains
Any idea why this is happening?
And how to fix it?
var width_size = 1024; var width_size = 786; driver.manage().window().setSize(width_size , width_size );