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
Video Tutorial

Visual learner? Check out this video Run End-to-End Tests With Claude (No Code Setup) for a step-by-step tutorial.

Steps​

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

One prompt that installs the Browserless MCP server and runs this example. Paste it into your AI agent.

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​

Was this page helpful?