Documentation

Motus documentation

Getting started, architecture, task guides, command-line and plugin reference, and migration paths. The same docs ship in the Motus repository. For what changed in each version, see the release notes. For every motus command and option, see the CLI reference. For the public .NET API, see the API reference.

Install Motus, write your first test in any framework, and run it.

How Motus is put together: a public contract, a headless engine, and a transport that holds the connection to the browser directly.

Task-focused guides for the features you reach for most.

Accessibility Testing

Audit pages against WCAG 2.1 rules from the browser's accessibility tree, with assertions, a lifecycle hook, and custom rules.

Performance Testing

Collect Core Web Vitals, set budgets by attribute or config, and fail tests on regressions.

Network Interception

Route requests by glob pattern to mock, forward, or abort, and wait for network events.

Attaching to a Running Browser

Drive a browser you did not start: debugging endpoints, target adoption, ownership, warm browsers, CI containers, signed-in profiles, and the security implications.

Frames and iframes

Traverse frames, act inside them, work with frames the browser renders in their own process, and choose between the main world and an isolated one.

Recording and Code Generation

Record a browser session into test code and generate Page Object Model classes from live pages.

Test Framework Integration

Integrate with MSTest, NUnit, and xUnit, including fixtures, failure tracing, and retrying a test that lost its browser.

Sharding

Split a suite across CI agents with deterministic partitioning, then merge the per-shard reports back into one.

Flaky Tests and Quarantine

Retry policies that separate a broken test from a blinking browser, flake detection and history, and quarantining a known-bad test.

MCP Server

Register the MCP server, the tool catalog and its optional groups, coordinate interaction, video recording, request mocking, isolated contexts, and the HTTP transport.

Roslyn Analyzers

The seven Roslyn diagnostics that catch automation mistakes at compile time, and their code fixes.

Configuration

The motus.config.json schema, environment variables, and the layered, code-last resolution order.

Exhaustive listings to look things up in, rather than read through.

Everything a plugin author needs, from a first plugin to the full interface reference and conventions.

Bring existing suites to Motus.