Chrome版本不变

发现在

Selenium-server-standalone-2.39.0.jar 中可全屏

Selenium-server-standalone-3.8.1.jar 中不可全屏

 

默认不是全屏

 

System.setProperty("webdriver.chrome.driver","\")

ChromeOptions chromeoptions = new ChromeOptions();

chromeoptions.addArguments("--start--maximized");

WebDriver driver = new ChromeDriver(chromeoptions);

Selenium Chrome_知识 ------------------------- A little Progress a day makes you a big success... ----------------------------