Skip to content
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
Closed

chrome-headless support #739

htoooth opened this issue Aug 17, 2017 · 3 comments

Comments

@htoooth
Copy link
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
@huan
Copy link
Member

huan 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.

@huan
Copy link
Member

huan 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

@huan
Copy link
Member

huan 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
Projects
None yet
Development

No branches or pull requests

2 participants