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

# Playwright Hub

## 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="/files/ztzXFO4jcFGPBHs4J3jX" 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.preprod.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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mozarkdocs.gitbook.io/appx_documentation/test-infrastructure-documentation/automation/playwright-hub.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
