All Classes and Interfaces
Class
Description
Exposes API that can be used for the Web API testing.
This API is used for the Web API testing.
APIResponse class represents responses returned by APIRequestContext.get() and
similar methods.The
APIResponseAssertions class provides assertion methods that can be used to make assertions about the
APIResponse in the tests.A Browser is created via
BrowserType.launch().Deprecated.
BrowserContexts provide a way to operate multiple independent browser sessions.
BrowserType provides methods to launch a specific browser instance or connect to an existing one.
The
CDPSession instances are used to talk raw Chrome Devtools Protocol:
protocol methods can be called with session.send method.
protocol events can be subscribed to with session.on method.
Use this class to launch playwright cli.
ConsoleMessage objects are dispatched by page via the Page.onConsoleMessage()
event.Dialog objects are dispatched by page via the Page.onDialog() event.Download objects are dispatched by page via the Page.onDownload() event.This class provides access to playwright-cli.
ElementHandle represents an in-page DOM element.
FileChooser objects are dispatched by the page in the Page.onFileChooser() event.The
FormData is used create form data that is sent via APIRequestContext.At every point of time, page exposes its current frame tree via the
Page.mainFrame() and Frame.childFrames() methods.FrameLocator represents a view to the
iframe on the page.JSHandle represents an in-page JavaScript object.
Keyboard provides an api for managing a virtual keyboard.
Locators are the central piece of Playwright's auto-waiting and retry-ability.
The
LocatorAssertions class provides assertion methods that can be used to make assertions about the
Locator state in the tests.The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.
Page provides methods to interact with a single tab in a
Browser, or an extension background page in Chromium.The
PageAssertions class provides assertion methods that can be used to make assertions about the Page
state in the tests.Playwright module provides a method to launch a browser instance.
Playwright gives you Web-First Assertions with convenience methods for creating assertions that will wait and retry
until the expected condition is met.
PlaywrightException is thrown whenever certain operations are terminated abnormally, e.g.
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.
The
RequestOptions allows to create form data to be sent via APIRequestContext.Response class represents responses which are received by page.Whenever a network route is set up with
Page.route() or BrowserContext.route(), the Route object allows to handle the route.Selectors can be used to install custom selector engines.
TimeoutError is emitted whenever certain operations are terminated due to timeout, e.g.
The Touchscreen class operates in main-frame CSS pixels relative to the top-left corner of the viewport.
API for collecting and saving Playwright traces.
When browser context is created with the
recordVideo option, each page has a video object associated with it.WebError class represents an unhandled exception thrown in the page.The
WebSocket class represents websocket connections in the page.The
WebSocketFrame class represents frames sent over WebSocket connections in the page.The Worker class represents a WebWorker.