【发布时间】:2018-08-15 11:13:01
【问题描述】:
我正在使用带有 chrome V 68.0.3440.106 的 chrome 驱动程序版本 2.40。
我似乎找不到 chrome 驱动程序选项来启动 chrome 而没有重定向阻止。
已经试过了:
ChromeOptions options = new ChromeOptions();
List<String> switches = new ArrayList<String>();
switches.add("--disable-popup-blocking");
options.addArguments(switches);
ChromeDriver driver = new ChromeDriver(options);
这周突然出现了,我似乎在 ChromeDriver 文档中找不到任何参考:( Example
【问题讨论】:
标签: java google-chrome selenium selenium-chromedriver