随便举几个栗子,就是像下面这样的报错,还要再花时间去找去猜到底是哪一行报的错。。。。。。

Error: waiting for selector "#header > header > ul.operates.right > li:nth-
child(3) > div > a:nth-child(2)" failed: timeout 30000ms exceeded
at Timeout.WaitTask._timeoutTimer.setTimeout (node_modules\puppeteer\lib\F
rameManager.js:844:60)

Error: Node is either not visible or not an HTMLElement
at ElementHandle._assertBoundingBox (node_modules\puppeteer\lib\ElementHan
dle.js:200:11)
at
at process._tickCallback (internal/process/next_tick.js:188:7)


↙↙↙阅读原文可查看相关链接,并与作者交流