> For the complete documentation index, see [llms.txt](https://docs.mozark.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mozark.ai/test-infrastructure-documentation/automation/playwright-hub.md).

# Playwright Hub

Connect Playwright test suites to Mozark's browser grid.

## Playwright Hub

Use this page to connect Playwright-based test suites to Mozark's browser grid.

### Overview

Navigate to **Automation → Playwright Testing**.

This page provides the connection details needed for Playwright's remote browser session flow.

### What this page includes

* The Hub URL to use as the WebSocket endpoint for Playwright's `connect` method
* A quick-start example that shows how to adapt an existing Playwright test
* Available browser and OS capabilities supported on the grid
* Authentication requirements for project-level access

Your project token is pre-filled in the provided snippets.

<figure><img src="https://2123087174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLMVfKLs2Tk5G2AJukEBS%2Fuploads%2F17Ftl7ina3fh80JsX4cl%2FScreenshot%202026-07-01%20at%204.57.45%E2%80%AFPM.png?alt=media&amp;token=b0dfabc3-daed-4358-9213-530de47cae21" alt=""><figcaption></figcaption></figure>

### Quick start

Mozark Playwright Testing runs existing Playwright suites in the cloud without local browser setup.

Connect over WebSocket and authenticate with a Bearer token or API key.

Your existing test code stays the same.

For generated connection details, code examples, and CI/CD setup guidance, sign in to [Playwright Testing](https://testinfra.mozark.ai/automation/playwright-testing).

Use that page to get:

* Your project-specific WebSocket hub endpoint
* Authentication headers for the current session
* `playwright.config.ts` connection settings
* Language-specific sample code and run commands

Supported browsers include Chromium, Firefox, and WebKit from the same hub.

### Result

After you configure your tests, sessions created by the suite are ingested automatically.

They appear under the Playwright Testing tab in the **Automation Sessions** list.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mozark.ai/test-infrastructure-documentation/automation/playwright-hub.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
