hardkoded / puppeteer-sharp

Headless Chrome .NET API
https://www.puppeteersharp.com
MIT License
3.36k stars 440 forks source link

How to watch or active for more than 1 tab in one chrome instance #2641

Closed wisamidris7 closed 4 months ago

wisamidris7 commented 4 months ago

Are there any solution for active cause some websites or 80% requires a active tab and puppeter does not have that so are there a solution i have this code

var page = await chatBrowser.NewPageAsync();
page.ExportToExternalWindow(); // I think this is cool name

Okay why cause more than one instance chrome instances is harmful for cpu and memory and more than tab in one chrome instance is better and as i said there are a feature in chrome it's this

https://github.com/hardkoded/puppeteer-sharp/assets/104096256/9c5997ad-9a74-4441-9012-6b5b0e1628be

And thanks!

kblok commented 4 months ago

Unfortunately I don't see a CDP to accomplish that. Sorry.