k11 Selenium QA

v0.3.1
io.github.K11-Software-Solutions/selenium-qa Checked 3 days ago Published 8 days ago

Selenium 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.

ParameterTypeDescription
url *string
max_elementsinteger
only_interactiveboolean
sessionOptional: 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.

ParameterTypeDescription
locator *string
url *string
sessionOptional: 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.

ParameterTypeDescription
steps *array
url *string
namestring
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…

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
code *string
path *string
overwriteboolean

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.

ParameterTypeDescription
keyword
target
timeout_sinteger

capture_baseline Capture baseline

While tests pass, fingerprint the element each locator matches (.qa-mcp/baselines.json) so healing can find it later.

ParameterTypeDescription
locators *array
url *string
sessionOptional: 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.

ParameterTypeDescription
locator *string
url *string
sessionOptional: reach a page behind a login or several steps into a flow