# k11 Selenium QA

> k11 Selenium QA is an MCP server for browser automation. Selenium test generation and self-healing locators with a reviewable audit trail. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI
- **Repository:** https://github.com/k11-software-solutions/k11techlab-selenium-qa-mcp
- **MCP Registry name:** io.github.K11-Software-Solutions/selenium-qa
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-14

## About

Instead of guessing locators, the assistant opens the real page in Selenium and gets back locators verified to match exactly one element, ordered from most stable (data-testid, stable id, name) down to text-based XPath. They are written in the project's language, Python or Java, with the language detected from pom.xml or build.gradle.

Healing starts from a baseline taken while tests pass. After a UI change, the server scores visible elements against the stored fingerprint, suggests a verified replacement with a confidence score and runner-up, and only marks it healed above 0.55 and clearly ahead of the alternative. The heal-ci command applies confident fixes in tests and Page Objects, including @FindBy annotations, re-runs the suite, reverts anything that still fails and opens a pull request whose description is the audit report.

It runs on Python 3.10 or newer from PyPI and supports Chrome, Edge or Firefox. A Claude Code plugin adds /story-to-test and /heal-tests.

## Features

- **Verified locators:** Returns locators that match exactly one element, most stable first.
- **Story to test:** Turns user stories or Gherkin into pytest, JUnit 5 or TestNG skeletons.
- **Self-healing with evidence:** Suggests replacements with confidence, reasons and runner-up.
- **Healing in CI:** Applies confident fixes, reverts failures and opens an audit pull request.
- **Structured test runs:** Reports each failing locator and the line that used it.
- **Login state reuse:** Saves cookies and localStorage so protected pages can be explored.

## Good for

- Fix a Selenium suite after a UI redesign
- Draft tests from acceptance criteria
- Find out which failures are locator problems
- Review automated locator fixes in a pull request

## Install

### Claude Code (Terminal)

```sh
claude mcp add selenium-qa -- uvx k11-selenium-qa-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "selenium-qa": {
      "command": "uvx",
      "args": [
        "k11-selenium-qa-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "selenium-qa": {
      "command": "uvx",
      "args": [
        "k11-selenium-qa-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "selenium-qa": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "k11-selenium-qa-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "selenium-qa": {
      "command": "uvx",
      "args": [
        "k11-selenium-qa-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "selenium-qa": {
      "command": "uvx",
      "args": [
        "k11-selenium-qa-mcp"
      ]
    }
  }
}
```

## Tools

- `explore_page`: Opens a URL and lists elements with verified locators.
- `check_locator`: Counts what a locator matches and whether it is visible.
- `parse_user_story`: Turns a user story into scenarios and a test skeleton.
- `write_test`: Writes test files into tests/ or src/test/java/.
- `run_tests`: Runs pytest, Maven or Gradle with per-test results.
- `capture_baseline`: Fingerprints the element each locator matches.
- `heal_locator`: Suggests a verified replacement after a UI change.
- `save_login_state`: Saves a login session for the other tools.

## FAQ

### Which languages are supported?

Python with pytest, and Java with JUnit 5 or TestNG on Maven or Gradle.

### When does k11 Selenium QA count a locator as healed?

When confidence is at least 0.55 and clearly ahead of the runner-up; otherwise it asks for review.

### Which browsers can k11 Selenium QA drive?

Chrome by default, plus Edge or Firefox.

### Are secrets kept out of logs?

Yes. Fill values can use an ENV placeholder and literal values are masked in results.

### How do I add k11 Selenium QA to Claude Code?

Run this command in your terminal: claude mcp add selenium-qa -- uvx k11-selenium-qa-mcp

### What are the best alternatives to k11 Selenium QA?

The closest alternatives to k11 Selenium QA are k11 Playwright QA, k11 Appium QA, Selenium AI Agent, ego-webqa and Git Qa.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [k11 Playwright QA](https://ai-powered.com/mcp/k11-playwright-qa): k11 Playwright QA is an MCP server for browser automation.
- [k11 Appium QA](https://ai-powered.com/mcp/k11-appium-qa): k11 Appium QA is an open-source MCP server for developer tools.
- [Selenium AI Agent](https://ai-powered.com/mcp/selenium-ai-agent): Selenium AI Agent is an open-source MCP server for browser automation.
- [ego-webqa](https://ai-powered.com/mcp/ego-webqa): ego-webqa is an open-source MCP server for developer tools.
- [Git Qa](https://ai-powered.com/mcp/git-qa): Git Qa is an open-source MCP server for developer tools.
- [ChromeWalk](https://ai-powered.com/mcp/chromewalk): ChromeWalk is an MCP server for browser automation.
- [Layoza](https://ai-powered.com/mcp/layoza): Layoza is an open-source MCP server for browser automation.
- [shaft-mcp](https://ai-powered.com/mcp/shaft-mcp): shaft-mcp is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/k11-selenium-qa
