k11 Selenium QA
v0.3.1Selenium tests from user stories (Python or Java) and self-healing locators with an audit trail.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
explore_page Explore page
Open a URL and list elements with Selenium locators verified to match exactly one element, most stable first.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
max_elements | integer | |
only_interactive | boolean | |
session | Optional: reach a page behind a login or several steps into a flow |
check_locator Check locator
Count what a Selenium locator matches on a page (1 = good) and whether it is visible.
| Parameter | Type | Description |
|---|---|---|
locator * | string | |
url * | string | |
session | Optional: reach a page behind a login or several steps into a flow |
save_login_state Save login state
Log in once with steps and save cookies + localStorage to .qa-mcp/auth/<name>.json for other tools. Use ${ENV:NAME} for credentials; values are never echoed.
| Parameter | Type | Description |
|---|---|---|
steps * | array | |
url * | string | |
name | string | |
success_locator |
review_user_story Review user story before testing
Call this BEFORE parse_user_story. Finds what a careful tester would ask before writing tests: missing acceptance criteria, outcomes that can't be asserted, no user role, untestable words (fast, easy, many), limits without numbers, no failure path, missing preconditions, and (with context) terms the context never explains. Returns questions for a person to answer, each with why it matters and the words that raised it. If ready is false, ask the user these questions and wait; do not guess the answers. context: related product docs, glossary or notes; ter…
| Parameter | Type | Description |
|---|---|---|
story * | string | |
context |
parse_user_story Parse user story
Turn a user story, Gherkin scenarios or acceptance criteria into scenarios and a test skeleton: pytest for Python projects, JUnit 5 or TestNG for Java projects (package/class_name apply to Java). Call review_user_story first; the result includes a short review so open questions are never silently skipped.
| Parameter | Type | Description |
|---|---|---|
story * | string | |
class_name | ||
package | ||
url |
write_test Write test
Write a test file. Python: into tests/ as test_*.py, *_test.py or conftest.py. Java: into src/test/java/ as a .java file (tests and Page Objects). Refuses other paths; won't overwrite unless asked.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
path * | string | |
overwrite | boolean |
run_tests Run tests
Run the project's tests. Python: pytest (target = file or node id; keyword = -k). Java: Maven or Gradle (target = Class, pkg.Class or Class#method). Failing tests include the exact Selenium locator they were waiting for and where it is used.
| Parameter | Type | Description |
|---|---|---|
keyword | ||
target | ||
timeout_s | integer |
capture_baseline Capture baseline
While tests pass, fingerprint the element each locator matches (.qa-mcp/baselines.json) so healing can find it later.
| Parameter | Type | Description |
|---|---|---|
locators * | array | |
url * | string | |
session | Optional: reach a page behind a login or several steps into a flow |
heal_locator Heal locator
Find the element a broken Selenium locator meant after a UI change and suggest a verified replacement, with confidence, reasons and the runner-up candidates. Never edits files.
| Parameter | Type | Description |
|---|---|---|
locator * | string | |
url * | string | |
session | Optional: reach a page behind a login or several steps into a flow |