question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tab management questions

See original GitHub issue

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 }))))

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jameshartigcommented, Feb 28, 2017

Yeah label creation is tricket with monorail. If you file the bug via: https://bugs.chromium.org/p/chromium/issues/entry?labels=Proj-Headless then it’ll tag it.

Additionally the headless-dev mailing list has been super helpful so feel free to post it there if you need it tagged.

1reaction
jottocommented, Feb 25, 2017

Thank you for filing and thank you for maintaining this great project!

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Efficient Chrome Tab Managers to Organize and Declutter ...
Check out these latest and greatest Chrome extensions to tackle tab overload and organize open tabs in a meaningful way.
Read more >
You Have a Million Tabs Open. Here's How to Manage Them
We're here to tell you that there are solutions to your tab woes, ways of managing them so they can be a help...
Read more >
Why you should use a tab manager - Medium
The reason you should use a tab manager or tab organizer is because browsers were designed for browsing, not productivity. A tab manager...
Read more >
Tough Interview Questions: How Many Browser Tabs Do You ...
The question is, “how many browser tabs you keep open.” is that you talk about how you're organized, and how you manage things...
Read more >
Tabs Manager - Chrome Developers
Change the focus of the tab. Move tabs to the same window and group them. Rename tab groups using the TabGroups API. #...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found