You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.
const qq = new QQ({ app: { login: QQ.LOGIN.PWD, }, auth: { u: 'qq号', p: '密码', }, })
会有下面报错
[Mon Jul 09 2018 15:13:46 GMT+0800 (CST)] ERROR Login with puppeteer:
TypeError: Cannot read property 'click' of null
at Object.getTokens (/Users/fage/Documents/workspace/js/qiangdahongbao/wechat-robot/node_modules/.2.1.8@qq-bot-rebown/src/qq/headless.js:40:26)
at
at process._tickCallback (internal/process/next_tick.js:118:7)
[Mon Jul 09 2018 15:13:47 GMT+0800 (CST)] ERROR Screenshot saved to /var/folders/03/3xqpky1d2vvfg1n2xp06b28h0000gn/T/qq-bot-rebown-FuaEhy/1531120426788.png
发生错误的代码是在这一块
if (ptLoginURL.startsWith('https://xui.ptlogin2.qq.com/cgi-bin/xlogin')) { ptLoginFrame.waitFor('#qlogin_list a.face'); log.debug('Clicking avatar...'); const avatar = await ptLoginFrame.$('#qlogin_list a.face'); await avatar.click(); }
我人工去点击了一下这个div,跳转链接是这个https://xui.ptlogin2.qq.com/cgi-bin/®master=&aid=501004106&s_url=http%3A%2F%2Fweb2.qq.com%2Fproxy.html,404啦
The text was updated successfully, but these errors were encountered: