Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add crawl with script with chromedriver in windows.#1017

Open
lxiaodao wants to merge 1 commit intocode4craft:developcode4craft/webmagic:developfrom
lxiaodao:script-chromedriverlxiaodao/webmagic:script-chromedriverCopy head branch name to clipboard
Open

Add crawl with script with chromedriver in windows.#1017
lxiaodao wants to merge 1 commit intocode4craft:developcode4craft/webmagic:developfrom
lxiaodao:script-chromedriverlxiaodao/webmagic:script-chromedriverCopy head branch name to clipboard

Conversation

@lxiaodao
Copy link

In webmagic-selenium project.

  1. Add test code using chromedriver in windows.
  2. Add test code using javascript with chromedriver.It is good practice to save time.

@Test
public void testExcuteScript() {

System.getProperties().setProperty("webdriver.chrome.driver", "D:\\software\\chrome\\chromedriver.exe");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work in CI cycle?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass the junit test。But should push the chromedriver.exe file and modify the code as System.getProperties().setProperty("webdriver.chrome.driver", "classpath\chromedriver.exe").
I will do this later.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and then non-Windows?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run on windows system as backstage process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.