-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
wx.qq.com detect phantomjs and disabled it #21
Comments
run with chrome may require a GUI environment, can i just change useragent of phantomjs to workaround this issue? |
it seems u use node version under v6. what node version do u have? if under v6 pls upgrade to v6 and have another and yes, use chrome as head need please feel free to let me know if u need more help. Zhuohuan LI - 發自我的小霸王學習機 On Aug 21, 2016 18:23, "Jas" [email protected] wrote:
|
yes, i forgot to change node version back to v6. |
maybe we could use headless chrome instead of phantomjs https://chromium.googlesource.com/chromium/src/ /master/headless/README.md |
change user agent maybe help, but i did not try yet. if u can make it work, pull request is welcome. :) |
trying to change useragent of phantomjs , it dose't work const customPhantom = WebDriver.Capabilities.phantomjs()
.setAlertBehavior('ignore')
.set('phantomjs.binary.path', phantomjsExe)
.set('phantomjs.cli.args', phantomjsArgs)
.set('phantomjs.page.settings.userAgent', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/51.0.2704.79 Chrome/51.0.2704.79 Safari/537.36') |
it' seems
|
yes, docker has issue after switched to chrome. Will fix it later. |
@JasLin docker worked. it based on see details here: https://github.com/wechaty/wechaty/blob/d2bf393d1b2018fceab00664f7b6b220ecbfe79e/bin/xvfb-chromium |
back to |
back to chrome because #28 |
chrome is more stable:) |
maybe is just another bug in inject code. phantomjs is better when you run wechaty on your desktop, like electron... |
Update 2016-9-1
Phantomjs work well now, without any modification at wechaty side.
It seems like js code in wx upgraded again, and the accident that disable phantomjs is not the purpose (more like a compatible bug of checksum code run in phantomjs).
before fix, you can switch to chrome instead of phantomjs to use wechaty as usual.
detail:
See Also
The text was updated successfully, but these errors were encountered: