-
Notifications
You must be signed in to change notification settings - Fork 318
Closed
Labels
Description
Can you verify the following?
CDP.List
,CDP.New
,CDP.Activate
,CDP.Close
use the HTTP transport- although on headless Chrome,
CDP.New()
fails for me with:Error: Could not create new page
- although on headless Chrome,
CDP()
returns a websocket connection to the currently active tabCDP().Target.createTarget({url: 'about:blank'})
creates a new tab, and returns{ targetId: 'some-hash' }
- but I can't connect to that new tab with
CDP({tab: {targetId: 'some-hash}})
, I have to query all the tabs to get thewebSocketDebuggerUrl
URL of that matching targetId/id first?
- but I can't connect to that new tab with
- can I maintain websocket connections to multiple tabs doing something like:
CDP.List().then(tabs => Promise.all(tabs.map(tab => CDP({ tab }))))