New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chrome-headless support #739

Closed
htoooth opened this Issue Aug 17, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@htoooth
Contributor

htoooth commented Aug 17, 2017

Now, chrome support headless mode. It can run without Xvfb lib. I advise that the wechaty project should move from phantomjs to chrome-headless.

There are some projects to referred.

  1. puppeteer
  2. chromeless
@zixia

This comment has been minimized.

Show comment
Hide comment
@zixia

zixia Aug 17, 2017

Member

That's awesome, Thank you very much for the advice!

The chrome headless mode will make the infrastructure of Wechaty become simple and easy to setup. I'd like to switch to that.

Will dive into it when I have time, and PR is welcome!

Updates

Requirement

Chrome Version:

Caution: Headless mode is available on Mac and Linux in Chrome 59. Windows support is coming in Chrome 60. To check what version of Chrome you have, open chrome://version.

Member

zixia commented Aug 17, 2017

That's awesome, Thank you very much for the advice!

The chrome headless mode will make the infrastructure of Wechaty become simple and easy to setup. I'd like to switch to that.

Will dive into it when I have time, and PR is welcome!

Updates

Requirement

Chrome Version:

Caution: Headless mode is available on Mac and Linux in Chrome 59. Windows support is coming in Chrome 60. To check what version of Chrome you have, open chrome://version.

@zixia

This comment has been minimized.

Show comment
Hide comment
@zixia

zixia Aug 17, 2017

Member

After implementing the headless chrome, I found that we have to wait until the chrome V62 to be released, which is planned in Oct 2017. That is because when we are using --headless args, chrome version below 62 will not allow the self-signed certificate to be used when visiting https://localhost.

See: https://bugs.chromium.org/p/chromium/issues/detail?id=721739#c26

Member

zixia commented Aug 17, 2017

After implementing the headless chrome, I found that we have to wait until the chrome V62 to be released, which is planned in Oct 2017. That is because when we are using --headless args, chrome version below 62 will not allow the self-signed certificate to be used when visiting https://localhost.

See: https://bugs.chromium.org/p/chromium/issues/detail?id=721739#c26

@zixia

This comment has been minimized.

Show comment
Hide comment
@zixia

zixia Aug 17, 2017

Member

Wechaty version v0.8.148 or above can enable Chrome headless mode by setting the env with WECHATHY_HEAD=chrome-headless

Member

zixia commented Aug 17, 2017

Wechaty version v0.8.148 or above can enable Chrome headless mode by setting the env with WECHATHY_HEAD=chrome-headless

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