# PlaywrightEx v0.17.0-rc.5 - Table of Contents > Elixir client for Playwright: a port of the official JavaScript client. ## GUIDES - Introduction - [Overview](readme.md) - [Getting started](getting-started.md) - [From playwright.dev to Elixir](api-conventions.md) - [Cheatsheet](cheatsheet.md) - Guides - [Testing with ExUnit](testing-with-exunit.md) - [Events and waiting](events-and-waiting.md) - [Network](network.md) - [Debugging and CI](debugging-and-ci.md) - [Concurrency](concurrency.md) - Upgrading - [Migrating from 0.16](migration.md) - [Changelog](changelog.md) ## Modules - Core - [PlaywrightEx](PlaywrightEx.md): Elixir client for Playwright, ported 1:1 from the official JavaScript client. - [PlaywrightEx.AbortController](PlaywrightEx.AbortController.md): The DOM `AbortController`: aborts the calls given its `signal/1` as `signal:` option. - [PlaywrightEx.AbortSignal](PlaywrightEx.AbortSignal.md): The DOM `AbortSignal` of the `signal:` options, from a `PlaywrightEx.AbortController` - [PlaywrightEx.Browser](PlaywrightEx.Browser.md): A Browser is created via `PlaywrightEx.BrowserType.launch/2`. An example of using a [`Browser`](`PlaywrightEx.Browser`) to create a [`Page`](`PlaywrightEx.Page`) - [PlaywrightEx.BrowserContext](PlaywrightEx.BrowserContext.md): BrowserContexts provide a way to operate multiple independent browser sessions. - [PlaywrightEx.BrowserType](PlaywrightEx.BrowserType.md): BrowserType provides methods to launch a specific browser instance or connect to an existing one. The following is a typical example of using Playwright to drive automation - [PlaywrightEx.Clock](PlaywrightEx.Clock.md): Accurately simulating time-dependent behavior is essential for verifying the correctness of applications. Learn more about [clock emulation](https://playwright.dev/docs/clock). - [PlaywrightEx.Credentials](PlaywrightEx.Credentials.md): [`Credentials`](`PlaywrightEx.Credentials`) is a virtual WebAuthn authenticator scoped to a [`BrowserContext`](`PlaywrightEx.BrowserContext`). It lets tests register passkeys and answer `navigator.credentials.create()` / `navigator.credentials.get()` ceremonies in the page, without a real authenticator or hardware security key. - [PlaywrightEx.Disposable](PlaywrightEx.Disposable.md): [`Disposable`](`PlaywrightEx.Disposable`) is returned from various methods to allow undoing the corresponding action. For example, `PlaywrightEx.Page.add_init_script/4` returns a [`Disposable`](`PlaywrightEx.Disposable`) that can be used to remove the init script. - [PlaywrightEx.Driver](PlaywrightEx.Driver.md): Installs and locates the Playwright driver: a pinned `playwright-core` npm package plus the pinned Node.js binary for the host platform. No Node.js is needed beforehand. - [PlaywrightEx.Playwright](PlaywrightEx.Playwright.md): Playwright module provides a method to launch a browser instance. The following is a typical example of using Playwright to drive automation - [PlaywrightEx.Promise](PlaywrightEx.Promise.md): A pending result, as returned by the waits that JS starts without `await` (`PlaywrightEx.Page.wait_for_event/3`, `wait_for_request/3`, `wait_for_navigation/2`, ...) - [PlaywrightEx.RegExp](PlaywrightEx.RegExp.md): A JS `RegExp`, for patterns Elixir's `Regex` cannot express - [PlaywrightEx.Selectors](PlaywrightEx.Selectors.md): Selectors can be used to install custom selector engines. See [extensibility](https://playwright.dev/docs/extensibility) for more information. - [PlaywrightEx.Supervisor](PlaywrightEx.Supervisor.md): Runs one Playwright driver and its connection. - Pages - [PlaywrightEx.ConsoleMessage](PlaywrightEx.ConsoleMessage.md): [`ConsoleMessage`](`PlaywrightEx.ConsoleMessage`) objects are dispatched by page via the [`Page.on(:console)`](PlaywrightEx.Page.html#module-console) event. For each console message logged in the page there will be corresponding event in the Playwright context. - [PlaywrightEx.Dialog](PlaywrightEx.Dialog.md): [`Dialog`](`PlaywrightEx.Dialog`) objects are dispatched by page via the [`Page.on(:dialog)`](PlaywrightEx.Page.html#module-dialog) event. - [PlaywrightEx.Download](PlaywrightEx.Download.md): [`Download`](`PlaywrightEx.Download`) objects are dispatched by page via the [`Page.on(:download)`](PlaywrightEx.Page.html#module-download) event. - [PlaywrightEx.ElementHandle](PlaywrightEx.ElementHandle.md): * extends: [`JSHandle`](`PlaywrightEx.JSHandle`) - [PlaywrightEx.FileChooser](PlaywrightEx.FileChooser.md): [`FileChooser`](`PlaywrightEx.FileChooser`) objects are dispatched by the page in the [`Page.on(:file_chooser)`](PlaywrightEx.Page.html#module-file_chooser) event. - [PlaywrightEx.Frame](PlaywrightEx.Frame.md): At every point of time, page exposes its current frame tree via the `PlaywrightEx.Page.main_frame/1` and `PlaywrightEx.Frame.child_frames/1` methods. - [PlaywrightEx.FrameLocator](PlaywrightEx.FrameLocator.md): FrameLocator represents a view to the `iframe` on the page. It captures the logic sufficient to retrieve the `iframe` and locate elements in that iframe. FrameLocator can be created with either `PlaywrightEx.Locator.content_frame/1`, `PlaywrightEx.Page.frame_locator/2` or `PlaywrightEx.Locator.frame_locator/2` method. - [PlaywrightEx.JSHandle](PlaywrightEx.JSHandle.md): JSHandle represents an in-page JavaScript object. JSHandles can be created with the `PlaywrightEx.Page.evaluate_handle/4` method. - [PlaywrightEx.Keyboard](PlaywrightEx.Keyboard.md): Keyboard provides an api for managing a virtual keyboard. The high level api is `PlaywrightEx.Keyboard.type/3`, which takes raw characters and generates proper `keydown`, `keypress`/`input`, and `keyup` events on your page. - [PlaywrightEx.Locator](PlaywrightEx.Locator.md): Locators are the central piece of Playwright's auto-waiting and retry-ability. In a nutshell, locators represent a way to find element(s) on the page at any moment. A locator can be created with the `PlaywrightEx.Page.locator/3` method. - [PlaywrightEx.Mouse](PlaywrightEx.Mouse.md): The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport. - [PlaywrightEx.Page](PlaywrightEx.Page.md): Page provides methods to interact with a single tab in a [`Browser`](`PlaywrightEx.Browser`), or an [extension background page](https://developer.chrome.com/extensions/background_pages) in Chromium. One [`Browser`](`PlaywrightEx.Browser`) instance might have multiple [`Page`](`PlaywrightEx.Page`) instances. - [PlaywrightEx.Touchscreen](PlaywrightEx.Touchscreen.md): The Touchscreen class operates in main-frame CSS pixels relative to the top-left corner of the viewport. Methods on the touchscreen can only be used in browser contexts that have been initialized with `:has_touch` set to true. - [PlaywrightEx.WebError](PlaywrightEx.WebError.md): [`WebError`](`PlaywrightEx.WebError`) class represents an unhandled exception thrown in the page. It is dispatched via the [`BrowserContext.on(:web_error)`](PlaywrightEx.BrowserContext.html#module-web_error) event. - [PlaywrightEx.WebMCP](PlaywrightEx.WebMCP.md): [`WebMCP`](`PlaywrightEx.WebMCP`) exposes the tools that a frame registers through the experimental [`WebMCP`](`PlaywrightEx.WebMCP`) browser API, `navigator.modelContext`. It lists the tools and calls them. - [PlaywrightEx.WebStorage](PlaywrightEx.WebStorage.md): WebStorage exposes the page's `localStorage` or `sessionStorage` for the current origin via a [browser-consistent](https://developer.mozilla.org/en-US/docs/Web/API/Storage) API. - [PlaywrightEx.Worker](PlaywrightEx.Worker.md): The Worker class represents a [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API). `worker` event is emitted on the page object to signal a worker creation. `close` event is emitted on the worker object when the worker is gone. - Assertions - [PlaywrightEx.Expect](PlaywrightEx.Expect.md): Web-first assertions: the methods of [`LocatorAssertions`](https://playwright.dev/docs/api/class-locatorassertions), [`PageAssertions`](https://playwright.dev/docs/api/class-pageassertions) and [`APIResponseAssertions`](https://playwright.dev/docs/api/class-apiresponseassertions), as functions of their receiver. - [PlaywrightEx.ExpectError](PlaywrightEx.ExpectError.md): A failed matcher (`PlaywrightEx.Expect`). - Network - [PlaywrightEx.APIRequest](PlaywrightEx.APIRequest.md): Exposes API that can be used for the Web API testing. This class is used for creating [`APIRequestContext`](`PlaywrightEx.APIRequestContext`) instance which in turn can be used for sending web requests. An instance of this class can be obtained via `PlaywrightEx.Playwright.request/1`. For more information see [`APIRequestContext`](`PlaywrightEx.APIRequestContext`). - [PlaywrightEx.APIRequestContext](PlaywrightEx.APIRequestContext.md): This API is used for the Web API testing. You can use it to trigger API endpoints, configure micro-services, prepare environment or the service to your e2e test. - [PlaywrightEx.APIResponse](PlaywrightEx.APIResponse.md): [`APIResponse`](`PlaywrightEx.APIResponse`) class represents responses returned by `PlaywrightEx.APIRequestContext.get/3` and similar methods. - [PlaywrightEx.Request](PlaywrightEx.Request.md): Whenever the page sends a request for a network resource the following sequence of events are emitted by [`Page`](`PlaywrightEx.Page`) - [PlaywrightEx.Response](PlaywrightEx.Response.md): [`Response`](`PlaywrightEx.Response`) class represents responses which are received by page. - [PlaywrightEx.Route](PlaywrightEx.Route.md): Whenever a network route is set up with `PlaywrightEx.Page.route/4` or `PlaywrightEx.BrowserContext.route/4`, the [`Route`](`PlaywrightEx.Route`) object allows to handle the route. - [PlaywrightEx.WebSocket](PlaywrightEx.WebSocket.md): The [`WebSocket`](`PlaywrightEx.WebSocket`) class represents WebSocket connections within a page. It provides the ability to inspect and manipulate the data being transmitted and received. - [PlaywrightEx.WebSocketRoute](PlaywrightEx.WebSocketRoute.md): Whenever a [`WebSocket`](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) route is set up with `PlaywrightEx.Page.route_web_socket/3` or `PlaywrightEx.BrowserContext.route_web_socket/3`, the [`WebSocketRoute`](`PlaywrightEx.WebSocketRoute`) object allows to handle the WebSocket, like an actual server would do. - Artifacts and debugging - [PlaywrightEx.CDPSession](PlaywrightEx.CDPSession.md): The [`CDPSession`](`PlaywrightEx.CDPSession`) instances are used to talk raw Chrome Devtools Protocol - [PlaywrightEx.Coverage](PlaywrightEx.Coverage.md): Coverage gathers information about parts of JavaScript and CSS that were used by the page. - [PlaywrightEx.Debugger](PlaywrightEx.Debugger.md): API for controlling the Playwright debugger. The debugger allows pausing script execution and inspecting the page. Obtain the debugger instance via `PlaywrightEx.BrowserContext.debugger/1`. - [PlaywrightEx.Screencast](PlaywrightEx.Screencast.md): Interface for capturing screencast frames from a page. - [PlaywrightEx.Tracing](PlaywrightEx.Tracing.md): API for collecting and saving Playwright traces. Playwright traces can be opened in [Trace Viewer](https://playwright.dev/docs/trace-viewer) after Playwright script runs. - [PlaywrightEx.Video](PlaywrightEx.Video.md): When browser context is created with the `:record_video` option, each page has a video object associated with it. - Errors - [PlaywrightEx.AbortError](PlaywrightEx.AbortError.md): A call was cancelled through its `signal:` (`PlaywrightEx.AbortController`). - [PlaywrightEx.PlaywrightError](PlaywrightEx.PlaywrightError.md): A Playwright error other than a timeout, closed target or abort. - [PlaywrightEx.TargetClosedError](PlaywrightEx.TargetClosedError.md): The page, context or browser of a call has been closed, or the driver has exited. - [PlaywrightEx.TimeoutError](PlaywrightEx.TimeoutError.md): A call ran out of time. ## Mix Tasks - [mix playwright_ex.cli](Mix.Tasks.PlaywrightEx.Cli.md): Usage: `mix playwright_ex.cli ARGS...` - [mix playwright_ex.install](Mix.Tasks.PlaywrightEx.Install.md): Usage: `mix playwright_ex.install [--no-browsers] [--force] [-- BROWSER_ARGS...]`