Commit 49a0be39 authored by shenjunlin's avatar shenjunlin

允许使用beta版本

parent 010ef831
......@@ -53,27 +53,27 @@ public class WebDriverPool {
switch (this.driverType) {
case Chrome:
ChromeDriverManager.getInstance().useMirror().forceCache().setup();
ChromeDriverManager.getInstance().useMirror().forceCache().useBetaVersions().setup();
mDriver = new ChromeDriver();
break;
case Opera:
OperaDriverManager.getInstance().useMirror().forceCache().setup();
OperaDriverManager.getInstance().useMirror().forceCache().useBetaVersions().setup();
mDriver = new OperaDriver();
break;
case Firefox:
FirefoxDriverManager.getInstance().useMirror().forceCache().setup();
FirefoxDriverManager.getInstance().useMirror().forceCache().useBetaVersions().setup();
mDriver = new FirefoxDriver();
break;
case PhantomJS:
PhantomJsDriverManager.getInstance().useMirror().forceCache().setup();
PhantomJsDriverManager.getInstance().useMirror().forceCache().useBetaVersions().setup();
mDriver = new PhantomJSDriver();
break;
case Internet_Explorer:
InternetExplorerDriverManager.getInstance().useMirror().forceCache().setup();
InternetExplorerDriverManager.getInstance().useMirror().forceCache().useBetaVersions().setup();
mDriver = new InternetExplorerDriver();
break;
case Microsoft_Edge:
EdgeDriverManager.getInstance().useMirror().forceCache().setup();
EdgeDriverManager.getInstance().useMirror().forceCache().useBetaVersions().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