Closed wangjq4214 closed 4 years ago
Error: Execution context was destroyed, most likely because of a navigation.
修改:
// https://github.com/puppeteer/puppeteer/blob/v5.1.0/docs/api.md#pagegotourl-options
await this.page?.goto(this.pageDriver?.pageUrl, {
// timeout: 0,
waitUntil: 'networkidle2',
});
For BUG
导航之后 puppeteer 上下文被销毁导致报错