小编Sal*_*yeb的帖子

Puppeteer Execution context was destroyed, most likely because of a navigation

I am facing this problem in puppeteer in a for loop when i go on another page to get data, then when i go back it comes me this error line:

Error "We have an error Error: the execution context was destroyed, probably because of a navigation."
Run Code Online (Sandbox Code Playgroud)

It's a directory page that contains 15 companies per page and then I want to visit each company to get information.

try {
    const browser = await pupputer.launch({
        headless: false,
        devtools: true,
        defaultViewport: …
Run Code Online (Sandbox Code Playgroud)

javascript node.js web-scraping puppeteer

4
推荐指数
1
解决办法
2749
查看次数

标签 统计

javascript ×1

node.js ×1

puppeteer ×1

web-scraping ×1