Chromedp: Ability to work with multiple tabs

Created on 26 Aug 2018  路  3Comments  路  Source: chromedp/chromedp

I've been trying to open up multiple tabs concurrently within one context from chromedp.New(). Moreover, I am using various runner options so that I can use headless chrome. I want to open up different URLs concurrently, but when I do it opens up multiple chrome instances -- and only one of the chrome instances will actually go to the URL that I want. Is there a way to fix this in headless chrome with runner options?

Most helpful comment

This has been fixed in master, which will be the upcoming v0.2.0 version once ready. See the many-tabs example: https://github.com/chromedp/chromedp/blob/896fbe60c209c643ac02d6cb757793d81dac3488/example_test.go#L80

All 3 comments

Any update on this?

Thanks for the input. We're currently designing v2, which will make the internal design resemble Puppeteer's. Hopefully that will mean handling multiple tabs would be possible, as long as it's possible with Puppeteer. For example, see https://github.com/GoogleChrome/puppeteer/blob/v1.12.2/docs/api.md#overview. Stay tuned!

This has been fixed in master, which will be the upcoming v0.2.0 version once ready. See the many-tabs example: https://github.com/chromedp/chromedp/blob/896fbe60c209c643ac02d6cb757793d81dac3488/example_test.go#L80

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mschilli picture mschilli  路  4Comments

orlangure picture orlangure  路  3Comments

vdobler picture vdobler  路  4Comments

donfrigo picture donfrigo  路  4Comments

pmurley picture pmurley  路  5Comments