Chrome浏览器 在windows/Mac下窗口最大化
Mac:
ChromeOptions options=new ChromeOptions(); options.addArguments("--kiosk"); WebDriver driver = new ChromeDriver(options);
Windows:
ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--start-maximized"); driver = new ChromeDriver(chromeOptions);