Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webmagic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
webmagic
Commits
010ef831
Commit
010ef831
authored
Jan 15, 2018
by
shenjunlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webdriver版本升级
parent
926dd346
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
pom.xml
webmagic-selenium/pom.xml
+1
-1
WebDriverPool.java
...codecraft/webmagic/downloader/selenium/WebDriverPool.java
+6
-6
No files found.
webmagic-selenium/pom.xml
View file @
010ef831
...
...
@@ -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>
...
...
webmagic-selenium/src/main/java/us/codecraft/webmagic/downloader/selenium/WebDriverPool.java
View file @
010ef831
...
...
@@ -53,27 +53,27 @@ public class WebDriverPool {
switch
(
this
.
driverType
)
{
case
Chrome:
ChromeDriverManager
.
getInstance
().
use
Taobao
Mirror
().
forceCache
().
setup
();
ChromeDriverManager
.
getInstance
().
useMirror
().
forceCache
().
setup
();
mDriver
=
new
ChromeDriver
();
break
;
case
Opera:
OperaDriverManager
.
getInstance
().
use
Taobao
Mirror
().
forceCache
().
setup
();
OperaDriverManager
.
getInstance
().
useMirror
().
forceCache
().
setup
();
mDriver
=
new
OperaDriver
();
break
;
case
Firefox:
FirefoxDriverManager
.
getInstance
().
use
Taobao
Mirror
().
forceCache
().
setup
();
FirefoxDriverManager
.
getInstance
().
useMirror
().
forceCache
().
setup
();
mDriver
=
new
FirefoxDriver
();
break
;
case
PhantomJS:
PhantomJsDriverManager
.
getInstance
().
use
Taobao
Mirror
().
forceCache
().
setup
();
PhantomJsDriverManager
.
getInstance
().
useMirror
().
forceCache
().
setup
();
mDriver
=
new
PhantomJSDriver
();
break
;
case
Internet_Explorer:
InternetExplorerDriverManager
.
getInstance
().
use
Taobao
Mirror
().
forceCache
().
setup
();
InternetExplorerDriverManager
.
getInstance
().
useMirror
().
forceCache
().
setup
();
mDriver
=
new
InternetExplorerDriver
();
break
;
case
Microsoft_Edge:
EdgeDriverManager
.
getInstance
().
use
Taobao
Mirror
().
forceCache
().
setup
();
EdgeDriverManager
.
getInstance
().
useMirror
().
forceCache
().
setup
();
mDriver
=
new
EdgeDriver
();
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment