browserContexts property

List<BrowserContext> browserContexts

Returns a list of all open browser contexts. In a newly created browser, this will return a single instance of BrowserContext.

Implementation

List<BrowserContext> get browserContexts =>
    [_defaultContext, ..._contexts.values];