selenium chrome 带插件启动

selenium chrome带插件启动

System.setProperty("webdriver.chrome.driver",
                "D:\\javaEEworkspace\\chromedriver.exe");
ChromeOptions option = new ChromeOptions();
option.addExtensions(new File("D:\\chrome_pppp\\pan-chrome.crx"));
dr = new ChromeDriver(option);

你可能感兴趣的:(爬虫)