For AI agents: a documentation index is available at /llms.txt
Skip to main content

Run end-to-end tests

Run browser tests against Browserless without installing or managing Chrome locally.

Prerequisites

Steps

Use the Browserless MCP server to run end-to-end tests from any MCP-compatible AI agent (Claude Desktop, Cursor, Windsurf, ChatGPT, etc.).

1. Connect the MCP server

Send this prompt to your AI agent to install the Browserless MCP server:

Go to https://github.com/browserless/browserless-mcp/blob/main/install.md
and follow the instructions to install the Browserless MCP server
for my client.

2. Run an E2E test

Use browserless_agent. E2E testing requires multi-step interaction with the page.

Use the browserless_agent tool to go to https://scraping-sandbox.netlify.app/products,
verify the page loads correctly, check the product catalog heading
is visible, click on a product, and confirm the product details appear

Next steps