You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used to use CRBrowserContext._browser which is not available any more. Rather we have chromiumBrowserContext.newCDPSession(page) which requires a page. I retrofitted to pass in a page and the resultant session did the job properly but I am unsure why that page is required. Looking at the code it seems like the session is created relative to the page. Does this mean that session will be closed if that page is closed? Should there be a different call chromiumBrowserContext.newBrowserCDPSession() which doesn't require a page?
The text was updated successfully, but these errors were encountered:
That depends on the target you intend to attach to. If you need a session to a page, you pass the page in, if you want to attach to the browser, you use the newBrowserCDPSession.
@pavelfeldman That makes sense. However I am launching browser using browserType.launchPersistentContext. With that newBrowserCDPSession is not available with chromiumBrowserContext. I also didn't see a way to get browser from browserContext. So this leaves me with just newCDPSession(page) which doesn't seem ideal.
I used to use
CRBrowserContext._browser
which is not available any more. Rather we have chromiumBrowserContext.newCDPSession(page) which requires a page. I retrofitted to pass in a page and the resultant session did the job properly but I am unsure why that page is required. Looking at the code it seems like the session is created relative to the page. Does this mean that session will be closed if that page is closed? Should there be a different callchromiumBrowserContext.newBrowserCDPSession()
which doesn't require a page?The text was updated successfully, but these errors were encountered: