Uses of Interface
com.microsoft.playwright.BrowserContext
-
Packages that use BrowserContext Package Description com.microsoft.playwright com.microsoft.playwright.impl.junit com.microsoft.playwright.options -
-
Uses of BrowserContext in com.microsoft.playwright
Methods in com.microsoft.playwright that return BrowserContext Modifier and Type Method Description BrowserContextPage. context()Get the browser context that the page belongs to.default BrowserContextBrowserType. launchPersistentContext(Path userDataDir)Returns the persistent browser context instance.BrowserContextBrowserType. launchPersistentContext(Path userDataDir, BrowserType.LaunchPersistentContextOptions options)Returns the persistent browser context instance.default BrowserContextBrowser. newContext()Creates a new browser context.BrowserContextBrowser. 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 voidBrowserContext. offClose(Consumer<BrowserContext> handler)Removes handler that was previously added withonClose(handler).voidBrowserContext. onClose(Consumer<BrowserContext> handler)Emitted when Browser context gets closed. -
Uses of BrowserContext in com.microsoft.playwright.impl.junit
Methods in com.microsoft.playwright.impl.junit that return BrowserContext Modifier and Type Method Description static BrowserContextBrowserContextExtension. getOrCreateBrowserContext(org.junit.jupiter.api.extension.ExtensionContext extensionContext)Returns the BrowserContext that belongs to the current test. -
Uses of BrowserContext in com.microsoft.playwright.options
Methods in com.microsoft.playwright.options that return BrowserContext Modifier and Type Method Description BrowserContextBindingCallback.Source. context()
-