codeceptjs-exploration
Installation
SKILL.md
CodeceptJS Page Exploration
Authoring a test, debugging a failure, and refactoring a stale locator all share one task: open a page, find the right element, pick a stable locator. This skill is the playbook.
How to look at a page
Drive everything through MCP. Two tools matter for exploration:
run_code— runs CodeceptJS code and returns the value the code produced, capturesconsole.*output, and saves a final-state snapshot. Use when you want to do something and look at the result (try a locator, grab a value, navigate).snapshot— captures the current state without performing any action: URL, cookies, localStorage, HTML, ARIA, screenshot, console. Use when you want to look at "what's on the page right now" between two actions, without re-running anything.
Three artifact sources, in order of preference:
- ARIA snapshot first. Structured, free of styling noise, easy to scan for duplicates and accessibility names.
- Screenshot. Visual confirmation — catches layout breaks, missing icons, "rendered but wrong" cases that ARIA can't show.
- HTML / outer markup. Pull only when ARIA is missing crucial context: custom widgets without accessible names, attribute-driven behaviour, dynamic content with no roles.