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?
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
Most helpful comment
This has been fixed in master, which will be the upcoming
v0.2.0version once ready. See the many-tabs example: https://github.com/chromedp/chromedp/blob/896fbe60c209c643ac02d6cb757793d81dac3488/example_test.go#L80