首页 > 代码库 > selenium webdriver ChromeOptions

selenium webdriver ChromeOptions

 ChromeOptions options=new ChromeOptions();         //options.addExtensions(new File("C:\\Agent.crx")); //加载扩展            //options.addArguments("user-data- dir=C:\\Users\\Sychopian\\AppData\\Local\\Google\\Chrome\\User Data"); //带参数启动,具体参数可google chrome带参数启动               driver = new EventFiringWebDriver(new ChromeDriver(options)).register(new LogEventListener()); //加入chromeOptions,并配置监听类

 

selenium webdriver ChromeOptions