go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5k stars 328 forks source link

Does rod support separate sessions or incognito mode? #1031

Closed BeyondIM closed 3 months ago

BeyondIM commented 3 months ago

Rod Version:v0.114.8

chromedp.WithNewBrowserContext is used to create a new browser context with chromedp. This allows you to operate in a separate session or incognito mode, where the state (cookies, local storage, etc.) is not shared with other browser contexts.

Does rod have a similar solution? tks.

github-actions[bot] commented 3 months ago

Please add a valid Rod Version: v0.0.0 to your issue. Current version is v0.114.8

generated by check-issue

ysmood commented 3 months ago

https://github.com/go-rod/rod/blob/0340433eab4e6551f075eaf1875035469a777480/browser.go#L84-L85