Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

k11 Selenium QA

by K11-Software-Solutionsversion 0.2.2i★ 0iRuns on your computerRepository ↗
Registry nameio.github.K11-Software-Solutions/selenium-qa

How to install

What it does

Selenium tests from user stories (Python or Java) and self-healing locators with an audit trail.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Web & browsers

Use together with

Skills that teach the AI this kind of work; they work alongside this one

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

by google-research★ 35,6291 skills

Skill · How-to guide

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

by BigBodyCobain★ 11,6021 skills

Skill · How-to guide

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

by gosom★ 8,2091 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install k11 Selenium QA. Follow https://mcp.popnx.com/i/k11-software-solutions-selenium-qa.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 17, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server k11 Selenium QA for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "selenium-qa": { "command": "uvx", "args": [ "k11-selenium-qa-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the k11 Selenium QA tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "selenium-qa": {
          "command": "uvx",
          "args": [
            "k11-selenium-qa-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use k11 Selenium QA and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using k11 Selenium QA or shows a k11 Selenium QA tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • QA_MCP_ROOT Folder of the test project (defaults to the current directory)
  • QA_MCP_BROWSER chrome (default), edge or firefox

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect k11 Selenium QA yet

k11 Selenium QA runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect k11 Selenium QA

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Web & browsers that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server k11 Selenium QA for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user selenium-qa -- uvx k11-selenium-qa-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the k11 Selenium QA tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user selenium-qa -- uvx k11-selenium-qa-mcp
  4. Type /mcp in Claude Code

    You should see k11 Selenium QA listed as connected

  5. Try it

    Use k11 Selenium QA and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using k11 Selenium QA or shows a k11 Selenium QA tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • QA_MCP_ROOT Folder of the test project (defaults to the current directory)
  • QA_MCP_BROWSER chrome (default), edge or firefox

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server k11 Selenium QA for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "selenium-qa": { "command": "uvx", "args": [ "k11-selenium-qa-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the k11 Selenium QA tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use k11 Selenium QA and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using k11 Selenium QA or shows a k11 Selenium QA tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • QA_MCP_ROOT Folder of the test project (defaults to the current directory)
  • QA_MCP_BROWSER chrome (default), edge or firefox

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server k11 Selenium QA for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "selenium-qa": { "type": "stdio", "command": "uvx", "args": [ "k11-selenium-qa-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the k11 Selenium QA tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use k11 Selenium QA and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using k11 Selenium QA or shows a k11 Selenium QA tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • QA_MCP_ROOT Folder of the test project (defaults to the current directory)
  • QA_MCP_BROWSER chrome (default), edge or firefox

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use k11 Selenium QA💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user selenium-qa -- uvx k11-selenium-qa-mcp

Claude Desktop (claude_desktop_config.json)

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

Cursor (~/.cursor/mcp.json)

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

VS Code (mcp.json)

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

Values you fill in

  • QA_MCP_ROOT env
    Folder of the test project (defaults to the current directory)
  • QA_MCP_BROWSER env
    chrome (default), edge or firefox

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Connection
Runs on your computer
Latest versioni
0.2.2
Published to registryi
Nov 17, 2026
Code last changedi
Nov 17, 2026
Maker
K11-Software-Solutions
Packages
pypi: k11-selenium-qa-mcp
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account K11-Software-Solutions, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 2 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked yet

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/k11-software-solutions-selenium-qa.svg)](https://mcp.popnx.com/en/servers/k11-software-solutions-selenium-qa)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Web & browsersi

  • More stars than 0% of the other 1613 servers in this category
  • Published to the registry more recently than 92% of the other 1613 servers in this category
  • Basic checks equal to or better than 99% of the other 1613 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is k11 Selenium QA safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 2 days ago, and the latest version (0.2.2) reached the registry 2 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Browser Use, changedetection.io (official), Apify MCP Server, Pomerado, Actionbook

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Browser Use

Lets AI do web tasks for you, such as filling forms, searching and extracting data, in the maker’s cloud browsers or on your computer.

by browser-useWidely used↓ 1.7M/wk★ 121.4KUpdated 29 days ago

Computer or cloud✓ service owner · browser-use.com

Apify MCP Server

Extract data from any website with thousands of scrapers, crawlers, and automations on Apify Store ⚡

by apifyWidely used★ 16.9KUpdated 2 days ago

Runs in the cloud✓ service owner · apify.com

Pomerado

Connect your agents to any website. The cheaper, faster and more reliable alternative to browser use

by PomeradoGrowing★ 1.8KUpdated yesterday

Runs in the cloud✓ service owner · pomerado.ai

Actionbook

Let your AI agent operate any website through a real, logged-in browser session.

by actionbookGrowing★ 1.6KUpdated 31 days ago

Runs in the cloud✓ service owner · actionbook.app
Compared with similar ones
This one
k11 Selenium QA
Browser Usechangedetection.io (official)Apify MCP ServerPomeradoActionbook
Runs whereInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoYesNoYesNoNo
Add with + in ClaudeNoYesNoNoNoNo
Basic checks3/35/53/34/44/44/4
LicenseMITMITApache-2.0MITMITApache-2.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

k11 Selenium QA — MCP server & Claude Code plugin

Self-healing Selenium tests with an audit trail, for Python and Java. No vendor lock-in, no rewrite to Playwright.

Most Selenium suites break the same way: someone renames an id, and dozens of find_element(By.ID, ...) calls fail overnight. AI assistants can write Selenium tests, but they guess locators, and healing tools usually patch things at runtime without telling you what changed. This MCP server gives the assistant facts instead of guesses, and gives your team a reviewable record of every fix:

  • Verified locators. It opens the real page in Selenium and returns locators that match exactly one element, most stable first: data-testid, a stable id, name, link text, aria-label, then text-based XPath. They come back in your project's language: (By.ID, "email") for Python, By.id("email") for Java.
  • Story → test. It turns "As a… I want… so that…", Gherkin scenarios or acceptance-criteria bullets into a pytest, JUnit 5 or TestNG skeleton: one test per scenario, explicit waits, and driver setup.
  • Structured test runs. It runs your suite (pytest, Maven or Gradle) and reports, for each failure, the exact locator Selenium could not find and the line that asked for it, even inside a Page Object.
  • Self-healing with evidence. When the UI changes, it finds the element the test meant and suggests a verified replacement, with a confidence score, the reasons and the runner-up.
  • Healing in CI. heal-ci applies only confident fixes, edits your tests *and Page Objects* (including @FindBy annotations), re-runs them, reverts anything that still fails, and opens a pull request whose description is the audit report.

Works with Claude Code (as a plugin with /story-to-test and /heal-tests), Claude Desktop, and any MCP client. On PyPI and in the official MCP Registry as io.github.K11-Software-Solutions/selenium-qa. The server runs on Python 3.10+; your tests can be Python (pytest) or Java (JUnit 5 / TestNG, Maven or Gradle), Selenium 4.


See it heal in CI

The demo app's account page was redesigned: ids renamed, a "View returns" button added next to "View orders", "Edit profile" renamed to "Account settings", the cart message reworded and the page title changed. The Selenium suite uses a Page Object:

class AccountPage:

VIEW_ORDERS = (By.ID, "view-orders") OPEN_CART = (By.ID, "cart-btn")

k11-selenium-qa-mcp heal-ci --apply produced this pull-request description (trimmed):

1 healed and verified, 0 suggested, 1 reverted, 1 needs review, 0 not found, 1 failure not caused by locators.

| Test | Where | Old locator | New locator | Confidence | Runner-up | Re-run |

|---|---|---|---|---|---|---|

| test_shows_my_orders | tests/pages/account_page.py:7 | (By.ID, "view-orders") | (By.ID, "orders-toggle") | 82% | (By.ID, "returns-toggle") (59%) | passed |

Why: name matches, role matches, text matches, type matches, tag matches; classes similar (43%).

Needs a person: "Edit profile" → best candidate "Account settings" at 45%, not confident enough to change. (By.ID, "cart-btn") healed at 85%, but the test still failed because the cart message changed too, so the change was reverted.

Not caused by locators: test_has_the_account_title (the page title changed). Untouched: it may be a real bug.

It picked "View orders" over the look-alike "View returns", fixed it where it lives (the Page Object, not the test), and refused to guess where a person should decide.

The same redesign against the Java version of the suite (Maven + JUnit 5, Page Factory):

@FindBy(id = "view-orders")

private WebElement viewOrders;

| Test | Where | Old locator | New locator | Confidence | Runner-up | Re-run |

|---|---|---|---|---|---|---|

| com.acme.AccountTest#showsMyOrders | src/test/java/com/acme/pages/AccountPage.java:14 | By.id("view-orders") | By.id("orders-toggle") | 82% | By.id("returns-toggle") (59%) | passed |

The annotation became @FindBy(id = "orders-toggle"); the cart change was reverted and "Edit profile" was left for a person, exactly as in Python.

Tools

ToolWhat it does
explore_pageOpens a URL and lists elements with Selenium locators verified to match exactly one element.
check_locatorCounts what a locator matches on a page (1 = good) and whether it's visible.
parse_user_storyUser story → scenarios + a pytest, JUnit 5 or TestNG skeleton (and a conftest.py for pytest if you need one).
write_testPython: test_*.py, *_test.py or conftest.py into tests/. Java: .java files into src/test/java/. Refuses other paths; won't overwrite unless asked.
run_testsRuns pytest, Maven or Gradle and returns per-test results with the failing locator and where it's used.
capture_baselineWhile tests pass, fingerprints the element each locator matches (.qa-mcp/baselines.json).
heal_locatorFinds the intended element after a UI change and suggests a verified replacement.
save_login_stateLogs in once with a few steps and saves cookies + localStorage for the other tools.

Locators are written the way your code writes them. Python: (By.ID, "email"), driver.find_element(By.XPATH, "//button[...]"). Java: By.id("email"), driver.findElement(By.cssSelector("...")), @FindBy(id = "email"), @FindBy(how = How.ID, using = "email"). The project's language is detected from pom.xml / build.gradle (override with QA_MCP_LANGUAGE=python|java).

Prompt: `story_to_selenium`, a guided workflow from story to passing test.

How self-healing works

  1. Baseline. While tests pass, capture_baseline records each element's fingerprint: role, accessible name, test id, id, name, type, label, placeholder, classes, text and href.
  2. Detect. For pytest, a small plugin notes the last locator Selenium could not find (including inside WebDriverWait) and the page the browser was on. For Java, the locator comes from Selenium's own exception text in the JUnit XML reports, and the stack trace shows which Page Object or test asked for it.
  3. Match. heal_locator scores every visible element on the current page against the fingerprint, with exact matching for stable attributes and fuzzy, synonym-aware matching for text and ids ("Sign in" ≈ "Log in", btn ≈ button).
  4. Verify. The best match gets the most stable Selenium locator that matches exactly one element on the live page.
  5. Decide. healed only when confidence is at least 0.55 and clearly ahead of the runner-up; otherwise needs_review with candidates, or not_found. Without a baseline it falls back to what the locator implies, and says so.

Commit .qa-mcp/baselines.json. Do not commit .qa-mcp/auth/ (saved logins); save_login_state adds it to .gitignore.

Pages behind a login and multi-step flows

Every page tool accepts a session:

{

"url": "https://shop.example.com/account", "session": { "storage_state": ".qa-mcp/auth/default.json", "steps": [ { "action": "click", "locator": "(By.LINK_TEXT, \"My orders\")" }, { "action": "wait_for", "locator": "(By.CSS_SELECTOR, \"[data-testid='order-history']\")" } ] } }

  • `storage_state`: cookies and localStorage saved by save_login_state, in the same JSON format Playwright uses. It must be inside the project.
  • `steps`: goto, click, fill, press, select, check, uncheck, wait_for, up to 25, with explicit waits.
  • Secrets stay out of prompts and logs. Write "value": "${ENV:APP_PASSWORD}". Results show the placeholder; literal fill values are masked as •••.

Healing in CI, with an audit trail

k11-selenium-qa-mcp heal-ci --apply
  1. Runs your suite: pytest with the locator-recording plugin, or mvn test / gradle test.
  2. For each locator failure, opens the page the test was on and heals against the committed baseline. The page comes from .qa-mcp/heal.config.json, the pytest run, or the page that locator's baseline was captured on (how Java projects find it). It logs in first if the config says how.
  3. Applies a change only when confidence is at least 0.7 (--min-confidence) and clearly ahead of the runner-up. It edits every place the locator appears: tests, Page Objects, helpers, @FindBy annotations.
  4. Re-runs the affected tests and reverts any change whose test still fails, keeping the others.
  5. Leaves failures that aren't about locators alone.
  6. Writes heal-report.md (the pull-request body) and heal-report.json (full evidence), plus GitHub Actions outputs.

Without --apply it's a dry run. Copy docs/heal-locators.yml into .github/workflows/ to run it nightly and open the pull request, and docs/heal.config.example.json to .qa-mcp/heal.config.json.

Install

Requires Python 3.10+ and Chrome (or Edge/Firefox with QA_MCP_BROWSER=edge|firefox). Selenium Manager downloads the matching driver automatically. For Java projects, Maven or Gradle (or their wrappers, mvnw / gradlew) must be available.

Claude Code: plugin (recommended)

Adds the MCP tools plus /story-to-test and /heal-tests (needs uv):

/plugin marketplace add K11-Software-Solutions/k11techlab-selenium-qa-mcp

/plugin install selenium-qa@k11-selenium-qa

Claude Code: MCP server only

From your test project's folder:

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

Or with pip: pip install k11-selenium-qa-mcp, then claude mcp add selenium-qa -- k11-selenium-qa-mcp.

Claude Desktop and other MCP clients
{

"mcpServers": { "selenium-qa": { "command": "uvx", "args": ["k11-selenium-qa-mcp"], "env": { "QA_MCP_ROOT": "/path/to/your/tests/project" } } } }

The server works on the project in QA_MCP_ROOT, or the current directory. Python tests run with the project's own interpreter: QA_MCP_PYTHON, else .venv/venv in the project, else the server's Python (it needs pytest and selenium). Java tests run with the project's Maven or Gradle wrapper if present, else mvn / gradle.

Try the demo

python demo/server.py --version v1      # http://127.0.0.1:8765/login.html (alex@example.com / correct-horse)

python demo/server.py --version v2 # the redesign

Safety

  • Locators are parsed, never `eval`'d. Only single By locator forms and @FindBy annotations with string literals are accepted.
  • Writes are confined to `tests/` or `src/test/java/` (write_test) or to the exact locator (heal-ci), found with Python's tokenizer or a comment-aware Java scanner, so comments and other code are never touched. Line endings are preserved.
  • Tests run without a shell. Java test filters are checked against a strict pattern.
  • Healing only suggests in the MCP tools. heal-ci --apply changes code only for confident, verified fixes, and every change is in a pull request for review.

How it compares

Runtime self-healing toolsk11 Selenium QA
Where the fix goesPatched in memory during the runYour source (tests and Page Objects), in a pull request
EvidenceLogsConfidence, reasons and runner-up in a report
If the fix is wrongTest passes against the wrong elementRe-run must pass, or the change is reverted
Lock-inProxy, agent or SDK in your test runNothing in your code depends on it (a pytest plugin is loaded only while it runs your tests)

Development

python -m venv .venv && .venv/Scripts/pip install -e ".[dev]"   # bin/pip on macOS/Linux

pytest # unit, rea

Only the beginning is shown; read the rest in the repo