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
constbrowser=awaitpuppeteer.launch();browser.browserContexts()[0].on('targetcreated',asynctarget=>{console.log(target.url());constcdp=awaittarget.createCDPSession();// (do something with cdp)});awaitbrowser.newPage();
This prints 'about:blank' over and over.
Apparently Target#createCDPSession causes targetcreated to be fired again.
This is most likely caused by #8520 (so v16.0.0). The snippet worked correctly in v15.3.2.
Puppeteer version
16.1.0
Node.js version
18.7.0
npm version
8.15.1
What operating system are you seeing the problem on?
stevenwdv
changed the title
[Bug]: browserContext.on('targetcreated', t => {console.log(t.url()); t.createCDPSession()}) goes haywire
[Bug]: browserContext.on('targetcreated', t => t.createCDPSession()) goes haywire
Aug 15, 2022
stevenwdv
added a commit
to stevenwdv/tracker-radar-collector
that referenced
this issue
Aug 15, 2022
Bug description
Steps to reproduce the problem:
This prints 'about:blank' over and over.
Apparently
Target#createCDPSession
causestargetcreated
to be fired again.This is most likely caused by #8520 (so v16.0.0). The snippet worked correctly in v15.3.2.
Puppeteer version
16.1.0
Node.js version
18.7.0
npm version
8.15.1
What operating system are you seeing the problem on?
Windows
Relevant log output
The text was updated successfully, but these errors were encountered: