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.
Architecture Overview
The project layout, the layered design, the data flow, which channel each browser is driven over, the plugin system, and the NativeAOT story.
Browser Lifecycle
Launching browsers and attaching to running ones, target adoption and ownership, the browser/context/page hierarchy, popups and new tabs, cleanup, health detection, and pooling.
Selectors and Assertions
The selector strategy registry, the five built-in strategies, selector inference, and the auto-retry assertion engine.
Transport and Protocol Layer
The pipe and WebSocket transports, CDP and BiDi sessions, source-generated protocol bindings, and AOT serialization.
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.
Getting Started with Plugins
Set up a plugin project, implement IPlugin, and register extensions through the plugin context.
Plugin Interfaces
The full API reference for every extension interface in Motus.Abstractions, with examples.
Plugin Best Practices
NativeAOT compatibility, thread safety, error handling, lifecycle, and testing for plugins.
Bring existing suites to Motus.