Complete example : [ Ссылка ]
In this post, we will discuss How to maximize the browser window in Selenium WebDriver. When we launch a browser using Selenium WebDriver, by default it is not in its maximized state. Here, we will see how to maximize a browser during automation script.
NOTE : It is a good practice to maximize a browser after launch.
[ Ссылка ]
Ещё видео!