# ๐ md-e2e
### *The Zero-Glue-Code, Markdown-Native E2E Test Automation Framework powered by Playwright*
[](https://github.com/contributors/md-e2e/actions)
[](https://pypi.org/project/md-e2e)
[](https://pypi.org/project/md-e2e)
[](https://github.com/astral-sh/ruff)
[](https://github.com/python/mypy)
[](LICENSE)
Write plain Markdown. Execute production-grade Playwright tests. Zero boilerplate required.
Why md-e2e? โข
Architecture โข
Quick Start โข
DSL Reference โข
Variables & Matrix โข
Self-Healing โข
Custom Steps โข
Reports โข
Pytest โข
CLI
---
## ๐ก Why md-e2e?
**md-e2e** bridges the gap between technical and non-technical stakeholders. It empowers developers, QA engineers, and product managers to author, review, and execute high-resilience browser automation directly in readable Markdown files.
| Feature / Metric | Cypress / Playwright | Cucumber / Behave | md-e2e |
| :--- | :---: | :---: | :---: |
| **Test Specification** | TypeScript / Python code | Gherkin `.feature` syntax | **Plain GitHub Markdown** |
| **Glue Code Required** | โ None (direct code) | ๐ด Heavy (step definition files + regex) | ๐ข **Zero glue code needed** |
| **Selector Resilience** | โ ๏ธ Manual selectors / test IDs | โ ๏ธ Rigid & brittle | ๐ก๏ธ **Multi-tier semantic locators** |
| **Self-Healing** | โ None | โ None | ๐ค **Built-in AI & heuristic healing** |
| **Collaborative Editing** | Engineers only | PMs write, engineers maintain | **Shared living documentation** |
| **Setup Overhead** | Moderate to High | High (multiple dependencies) | **Single command (`pip install md-e2e`)** |
### Core Capabilities
- ๐ **Zero Glue Code**: Human-readable actions resolve directly to Playwright locators without step-definition boilerplate.
- ๐ฏ **Multi-Tier Semantic Locators**: Prioritizes accessible names and roles before falling back to titles, placeholders, or fuzzy text.
- โก **Compound Selector Support**: Seamlessly use Playwright engines (`data-testid=`, `xpath=`, `css=`), CSS classes (`#id`, `.class`), and compound chains (`div >> input[type="text"]`).
- ๐ก๏ธ **Hybrid Self-Healing**: Resilient against UI refactors with 6 deterministic safeguards, assertion immunity, and DOM password redaction.
- ๐ **Data-Driven Matrix**: Run scenarios across Markdown tables with complete cross-row execution isolation.
- ๐งฐ **Built-in Developer Tools**: Includes an interactive step-by-step debugger and codegen browser recorder.
---
## ๐๏ธ Architecture & Locator Engine
md-e2e uses a multi-tier prioritized resolution model to locate DOM elements with high fidelity, preventing race conditions and fragile CSS selector failures.