Uses of Interface
com.microsoft.playwright.BrowserContext
-
Packages that use BrowserContext Package Description com.microsoft.playwright com.microsoft.playwright.options -
-
Uses of BrowserContext in com.microsoft.playwright
Methods in com.microsoft.playwright that return BrowserContext Modifier and Type Method Description BrowserContext
Page. context()
Get the browser context that the page belongs to.default BrowserContext
BrowserType. launchPersistentContext(Path userDataDir)
Returns the persistent browser context instance.BrowserContext
BrowserType. launchPersistentContext(Path userDataDir, BrowserType.LaunchPersistentContextOptions options)
Returns the persistent browser context instance.default BrowserContext
Browser. newContext()
Creates a new browser context.BrowserContext
Browser. newContext(Browser.NewContextOptions options)
Creates a new browser context.Methods in com.microsoft.playwright that return types with arguments of type BrowserContext Modifier and Type Method Description List<BrowserContext>
Browser. contexts()
Returns an array of all open browser contexts.Method parameters in com.microsoft.playwright with type arguments of type BrowserContext Modifier and Type Method Description void
BrowserContext. offClose(Consumer<BrowserContext> handler)
Removes handler that was previously added withonClose(handler)
.void
BrowserContext. onClose(Consumer<BrowserContext> handler)
Emitted when Browser context gets closed. -
Uses of BrowserContext in com.microsoft.playwright.options
Methods in com.microsoft.playwright.options that return BrowserContext Modifier and Type Method Description BrowserContext
BindingCallback.Source. context()
-