Commit 010ef831 authored by shenjunlin's avatar shenjunlin

webdriver版本升级

parent 926dd346
......@@ -9,7 +9,7 @@
<artifactId>webmagic-selenium</artifactId>
<properties>
<webdrivermanager.version>2.0.1</webdrivermanager.version>
<webdrivermanager.version>2.1.0</webdrivermanager.version>
</properties>
<dependencies>
......
......@@ -53,27 +53,27 @@ public class WebDriverPool {
switch (this.driverType) {
case Chrome:
ChromeDriverManager.getInstance().useTaobaoMirror().forceCache().setup();
ChromeDriverManager.getInstance().useMirror().forceCache().setup();
mDriver = new ChromeDriver();
break;
case Opera:
OperaDriverManager.getInstance().useTaobaoMirror().forceCache().setup();
OperaDriverManager.getInstance().useMirror().forceCache().setup();
mDriver = new OperaDriver();
break;
case Firefox:
FirefoxDriverManager.getInstance().useTaobaoMirror().forceCache().setup();
FirefoxDriverManager.getInstance().useMirror().forceCache().setup();
mDriver = new FirefoxDriver();
break;
case PhantomJS:
PhantomJsDriverManager.getInstance().useTaobaoMirror().forceCache().setup();
PhantomJsDriverManager.getInstance().useMirror().forceCache().setup();
mDriver = new PhantomJSDriver();
break;
case Internet_Explorer:
InternetExplorerDriverManager.getInstance().useTaobaoMirror().forceCache().setup();
InternetExplorerDriverManager.getInstance().useMirror().forceCache().setup();
mDriver = new InternetExplorerDriver();
break;
case Microsoft_Edge:
EdgeDriverManager.getInstance().useTaobaoMirror().forceCache().setup();
EdgeDriverManager.getInstance().useMirror().forceCache().setup();
mDriver = new EdgeDriver();
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment