In this page it shows steps to maximize, minimize or full screen the browser window in the Selenium automation code.
I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com
Code:
public class BrowserMaxMinFScreen {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver","locationofchromeDriverExe\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().minimize();
driver.manage().window().maximize();
driver.manage().window().fullscreen();
}
}

