Skip to content

Tab management questions #83

@jotto

Description

@jotto

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
  • CDP() returns a websocket connection to the currently active tab
  • CDP().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 the webSocketDebuggerUrl URL of that matching targetId/id first?
  • can I maintain websocket connections to multiple tabs doing something like: CDP.List().then(tabs => Promise.all(tabs.map(tab => CDP({ tab }))))

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions