| Package | Description |
|---|---|
| com.microsoft.playwright |
| Modifier and Type | Method and Description |
|---|---|
Browser |
BrowserContext.browser()
Returns the browser instance of the context.
|
default Browser |
BrowserType.connect(String wsEndpoint)
This methods attaches Playwright to an existing browser instance.
|
Browser |
BrowserType.connect(String wsEndpoint,
BrowserType.ConnectOptions options)
This methods attaches Playwright to an existing browser instance.
|
default Browser |
BrowserType.connectOverCDP(String endpointURL)
This methods attaches Playwright to an existing browser instance using the Chrome DevTools Protocol.
|
Browser |
BrowserType.connectOverCDP(String endpointURL,
BrowserType.ConnectOverCDPOptions options)
This methods attaches Playwright to an existing browser instance using the Chrome DevTools Protocol.
|
default Browser |
BrowserType.launch()
Returns the browser instance.
|
Browser |
BrowserType.launch(BrowserType.LaunchOptions options)
Returns the browser instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Browser.offDisconnected(Consumer<Browser> handler)
Removes handler that was previously added with
onDisconnected(handler). |
void |
Browser.onDisconnected(Consumer<Browser> handler)
Emitted when Browser gets disconnected from the browser application.
|
Copyright © 2021. All rights reserved.