| Package | Description |
|---|---|
| com.microsoft.playwright | |
| com.microsoft.playwright.options |
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
List<BrowserContext> |
Browser.contexts()
Returns an array of all open browser contexts.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BrowserContext.offClose(Consumer<BrowserContext> handler)
Removes handler that was previously added with
onClose(handler). |
void |
BrowserContext.onClose(Consumer<BrowserContext> handler)
Emitted when Browser context gets closed.
|
| Modifier and Type | Method and Description |
|---|---|
BrowserContext |
BindingCallback.Source.context() |
Copyright © 2021. All rights reserved.