update 更新selenium版本
This commit is contained in:
@@ -37,6 +37,7 @@ public class WebClient {
|
||||
}
|
||||
|
||||
private WebClient() {
|
||||
//System.setProperty("webdriver.http.factory", "jdk-http-client");
|
||||
System.setProperty("webdriver.chrome.driver",
|
||||
ConfigTools.load(ConfigTools.CONFIG, "chrome", String.class));
|
||||
// System.setProperty("webdriver.chrome.whitelistedIps", "");
|
||||
@@ -84,6 +85,7 @@ public class WebClient {
|
||||
|
||||
public ChromeOptions getOptions() {
|
||||
ChromeOptions options = new ChromeOptions();
|
||||
options.addArguments("--remote-allow-origins=*");
|
||||
// options.addArguments("--disable-gpu");
|
||||
// options.addArguments("blink-settings=imagesEnabled=false");
|
||||
String headless = RedisTools.get("chromedrive_headless");
|
||||
|
||||
Reference in New Issue
Block a user