Repository avatar
Browser Automation
v1.0.2
active

webengine-mcp

io.github.AxaFrance/webengine-mcp

Local stdio MCP server for web UI automation with Selenium.

Documentation

AXA WebEngine Framework

A Test Automation Framework (TAF) is a set of guidelines, libraries for creating and designing test cases. It is conceptual part of the automated testing, provides common functionalities and best practices that helps Test Automation Engineers to create reliable, maintainable, and well-structured Test Automation Solutions (TAS).

AXA WebEngine Framework makes it easier to build highly effective test automation solutions for Web, Mobile Web and Mobile App testing.

Built by Test Guild of AXA France, available in .NET and JAVA and used in dozens of test automation projects within AXA France. We decided to open source this framework to share our knowledge on Test Automation to the community and hopes we can improve the framework (and the quality of IT Systems, or course πŸ˜‰) together.

Why WebEngine Framework?

WebEngine Framework resolves some common problems every test automation project can face, and it simplifies the writing of test scripts.

  • It supports all Selenium based technologies on Desktop Browsers, Mobile Browsers on different Mobile Devices.
  • Using Browser Factory, there is no need to download various selenium WebDriver when browser and its version changes.
  • Description oriented Web Element identification and synchronization with browser out-of-box.
  • Organizing Web Element in Page Model makes test scripts easy to read and to maintain.
  • Fully object-oriented and compatible with Keyword-Driven and Data-driven approach.
  • Compatible with other another Unit test frameworks such as NUnit, Cucumber
  • Easy configuration and Set-up for Execution: run tests from the command line or CI/CD pipelines
  • Graphical test report.
  • Open Source, free usage and let’s improve it together!

Getting started.

  • Introduction: Explains common concepts of the framework.
  • API Reference: Explains every class, method and property.
  • Tutorials: Follow some step by step turotial to build first test automation solution using different approach.

https://axafrance.github.io/webengine-dotnet/

Use the latest version

The Framework is distributed via Package Management: When using .NET, please find AxaFrance.WebEngine packages on nuget.org When using JAVA, these pacakges will be available on Maven

Excel Add-in

The Excel-DNA add-in lets teams maintain data-driven test data in Excel and launch selected test cases directly with WebRunner. It requires 64-bit Excel and the .NET 8 Desktop Runtime.

Project: src/AxaFrance.WebEngine.ExcelAddin β€” installation and usage are documented in the Excel Add-in article.

MCP (Model Context Protocol) Integration

WebEngine includes an MCP server that enables AI-powered coding agents (like GitHub Copilot) to observe your application, execute tests, and generate UI test scripts automatically.

Key Features:

  • Observe: Capture page state, inspect elements, and analyze accessibility
  • Execute: Interact with UI elements and perform bulk actions on live applications
  • Generate: Automatically create code in your stack (Playwright+TS, Selenium, WebEngine C#) from observed behavior

Plugins (stdio, recommended): one webengine-mcp binary, two plugins β€” plugins/webengine-web (Selenium, 29 tools) and plugins/webengine-mobile (Appium, 28 tools) β€” each bundling Agent Skills + MCP server for Copilot (Agent Plugins 1.0) and Codex. Details in plugins/README.md.

Install the plugins in your coding agent:

AgentInstall
GitHub Copilot CLIcopilot plugin marketplace add AxaFrance/webengine-dotnet, then install webengine-web@webengine-plugins or webengine-mobile@webengine-plugins
GitHub Copilot (VS Code)Chat: Install Plugin From Source β†’ this repository or a plugin subdirectory
Codex (CLI/IDE/desktop)codex plugin marketplace add AxaFrance/webengine-dotnet --sparse .agents/plugins
Claude Codecopy plugins/<name>/skills/* to .claude/skills/ + stdio entry in mcpServers
OpenCodecopy skills to .agents/skills/ + type: local entry in opencode.json
Cursorcopy skills to .cursor/skills/ + entry in .cursor/mcp.json

The standard NuGet distribution runs without a local repository clone via dnx AxaFrance.WebEngine.Mcp --profile <web|mobile> --transport stdio, but requires the .NET 10 SDK 10.0.100 or later. Modern .NET is not included with Windows by default. Full per-agent guide: documentation article MCP Plugins for Coding Agents.

For detailed information on running the MCP server locally, available tools, and how to use it with coding agents, see WebEngineMCP.md.

CLI-only distribution

Some organizations do not allow MCP servers. WebEngine also provides a standalone webengine .NET tool: the short-lived CLI is a thin client and a local daemon owns persistent Selenium browser sessions. This path does not use MCP or require a repository checkout.

The tool requires the .NET 10 SDK 10.0.100 or later. Install it from Microsoft, then install the stable package:

dotnet tool install --global AxaFrance.WebEngine.Cli
webengine daemon start --json

When the webengine-cli Copilot plugin is installed, its skill checks for the command and performs this installation automatically. It tries the stable NuGet package first and uses --prerelease only when no stable package is available.

The current web command surface includes persistent sessions, navigation, DOM inspection, CSS/ref-based click and type actions, native <select> selection, and an action log:

webengine --json
daemon start
web session open
web navigate --session <id> --url https://example.test
web wait --session <id> --text "Ready"
web inspect --session <id>
web click --session <id> --ref ref=3
web check --session <id> --id agreeTerms
web uncheck --session <id> --name marketing
web select --session <id> --name country --text France
web actions --session <id>
web session close --session <id>
daemon stop
exit

The default shell keeps one CLI process and named-pipe connection in memory. Use webengine -c "<command>" for one-shot execution when a host cannot keep the shell process open. The default browser is visible for observation, test-authoring, and locator debugging; add --headless for CI/CD or cloud sessions without a desktop display.

web type accepts exactly one of --text, --text-file, or --stdin. UTF-8 file and stdin input preserves embedded CR/LF characters as one value. File and stdin input avoid command-line exposure but do not bypass the action log; only recognized password fields are redacted. Use the explicit web key --key <name> command for Enter, Tab, Escape, Backspace, Delete, Space, Home, End, PageUp, PageDown, or arrow keys. In the persistent shell, use --text-file for multiline values because stdin is the command channel. Reserve --stdin for one-shot direct commands.

Use the webengine-cli plugin when MCP is prohibited:

copilot plugin install webengine-cli@webengine-plugins

Browser commands target Edge by default and also support Chrome and Firefox. The same CLI also drives Appium sessions (locators, gestures, device lock and orientation, screenshots) with credentials read only from environment variables. Do not submit real quotes, personal data, credentials, payment details, or other irreversible transactions during exploratory agent runs.

Build the documentation

The documentation build uses the pinned DocFX .NET tool and writes the English site to docs/ and the French articles/tutorials to docs/fr/. The generated API reference is shared and remains in English; language links are in the footer of every page. Use -EnglishOnly with scripts/build-docs.ps1 to skip the French build:

powershell -ExecutionPolicy Bypass -File scripts/build-docs.ps1

WebEngine 2.0 Roadmap

We are working on the next version of WebEngine Framework, in the next versions we will bring.

  • Enhanced Page-Object Model.
  • Enhanced Element Description Model (with more attributes and relative-identification mode)
  • Integrates Acessibility Testing with axe-core library and comprehensive reports.

To get detailed information with this roadmap, please check WebEngine 2.0 Roadmap

Contact us

Feel free to reach us if you want to adopt the Framework, report Bugs, or have good ideas to contribute on it.

Repository of .NET Project and shared components:

Repository Java Project:

NUGET
AxaFrance.WebEngine.Mcp
Install Command
# nuget: AxaFrance.WebEngine.Mcp
Runtime: dnx