| Interface | Description |
|---|---|
| Browser |
A Browser is created via
BrowserType.launch(). |
| BrowserContext |
BrowserContexts provide a way to operate multiple independent browser sessions.
|
| BrowserType |
BrowserType provides methods to launch a specific browser instance or connect to an existing one.
|
| ConsoleMessage |
ConsoleMessage objects are dispatched by page via the Page.onConsole() event. |
| Dialog |
Dialog objects are dispatched by page via the Page.onDialog() event. |
| Download |
Download objects are dispatched by page via the Page.onDownload() event. |
| ElementHandle |
ElementHandle represents an in-page DOM element.
|
| FileChooser |
FileChooser objects are dispatched by the page in the Page.onFileChooser() event. |
| Frame |
At every point of time, page exposes its current frame tree via the
Page.mainFrame() and Frame.childFrames() methods. |
| JSHandle |
JSHandle represents an in-page JavaScript object.
|
| Keyboard |
Keyboard provides an api for managing a virtual keyboard.
|
| Mouse |
The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.
|
| Page |
Page provides methods to interact with a single tab in a
Browser, or an extension background page in Chromium. |
| Playwright |
Playwright module provides a method to launch a browser instance.
|
| Request |
Whenever the page sends a request for a network resource the following sequence of events are emitted by
Page:
Page.onRequest() emitted when the request is issued by the page.
Page.onResponse() emitted when/if the response status and headers are received for the request.
Page.onRequestFinished() emitted when the response body is downloaded and the request is
complete.
|
| Response |
Response class represents responses which are received by page. |
| Route |
Whenever a network route is set up with
Page.route() or BrowserContext.route(), the Route object allows to handle the route. |
| Selectors |
Selectors can be used to install custom selector engines.
|
| Touchscreen |
The Touchscreen class operates in main-frame CSS pixels relative to the top-left corner of the viewport.
|
| Video |
When browser context is created with the
recordVideo option, each page has a video object associated with it. |
| WebSocket |
The
WebSocket class represents websocket connections in the page. |
| WebSocketFrame |
The
WebSocketFrame class represents frames sent over WebSocket connections in the page. |
| Worker |
The Worker class represents a WebWorker.
|
| Exception | Description |
|---|---|
| PlaywrightException |
PlaywrightException is thrown whenever certain operations are terminated abnormally, e.g.
|
| TimeoutError |
TimeoutError is emitted whenever certain operations are terminated due to timeout, e.g.
|
Copyright © 2021. All rights reserved.