Python Testing
macalbert/envilder
Mandatory testing conventions including AAA pattern, test naming, assertions, and mocks.
Selector strategy, exploration-first workflow, locator priority order (getByRole then getByLabel then getByPlaceholder then getByText then getByTestId), and feedback/validation-message selector…
$ npx skills add idavidov13/agentic-playwright --skill selectors -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install idavidov13/agentic-playwright selectors --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/idavidov13/agentic-playwright.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/selectors .claude/skills/selectors && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "selectors" agent skill from https://github.com/idavidov13/agentic-playwright/tree/main/.claude/skills/selectors into .claude/skills/selectors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "selectors", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/idavidov13/agentic-playwright/tree/main/.claude/skills/selectorsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add idavidov13/agentic-playwright --skill selectors -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install idavidov13/agentic-playwright selectors --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/idavidov13/agentic-playwright.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/selectors .agents/skills/selectors && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "selectors" agent skill from https://github.com/idavidov13/agentic-playwright/tree/main/.claude/skills/selectors into .agents/skills/selectors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "selectors", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add idavidov13/agentic-playwright --skill selectors -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install idavidov13/agentic-playwright selectors --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/idavidov13/agentic-playwright.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/selectors .cursor/skills/selectors && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "selectors" agent skill from https://github.com/idavidov13/agentic-playwright/tree/main/.claude/skills/selectors into .cursor/skills/selectors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "selectors", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/idavidov13/agentic-playwright.git --path .claude/skills/selectors--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add idavidov13/agentic-playwright --skill selectors -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install idavidov13/agentic-playwright selectors --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/idavidov13/agentic-playwright.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/selectors .gemini/skills/selectors && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "selectors" agent skill from https://github.com/idavidov13/agentic-playwright/tree/main/.claude/skills/selectors into .gemini/skills/selectors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "selectors", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install idavidov13/agentic-playwright selectorsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add idavidov13/agentic-playwright --skill selectors -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/idavidov13/agentic-playwright.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/selectors .github/skills/selectors && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "selectors" agent skill from https://github.com/idavidov13/agentic-playwright/tree/main/.claude/skills/selectors into .github/skills/selectors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "selectors", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add idavidov13/agentic-playwright --skill selectors -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install idavidov13/agentic-playwright selectors --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/idavidov13/agentic-playwright.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/selectors .opencode/skills/selectors && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "selectors" agent skill from https://github.com/idavidov13/agentic-playwright/tree/main/.claude/skills/selectors into .opencode/skills/selectors/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "selectors", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
selectorsSelector strategy, exploration-first workflow, locator priority order (getByRole then getByLabel then getByPlaceholder then getByText then getByTestId), and feedback/validation-message selector…
Selectors is an agent skill from idavidov13/agentic-playwright. Selector strategy, exploration-first workflow, locator priority order (getByRole then getByLabel then getByPlaceholder then getByText then getByTestId), and feedback/validation-message selector rules for Playwright page objects. Use when creating page objects, writing or updating locators, generating UI tests, or deciding which selector strategy to use for a given element. Enforces mandatory live-app exploration via playwright-cli before any selector generation. For the page-object class structure, JSDoc rules…
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/examples.md`, `references/feedback-selectors-example.md` and `references/troubleshooting.md`).
It sits in Testing & QA, covering Browser testing and Technical documentation. It works with Playwright. The repository describes itself as: Production-grade Playwright + TypeScript Scaffold for Agentic Testing. Harness for all major AI coding agents baked in. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f6cbf35. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Selectors loads about 2.7k tokens when it runs, and up to ~4.6k if it reads all its reference files. Until then it costs about 177 tokens; SKILL.md has 1,124 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from idavidov13/agentic-playwright at commit f6cbf35, republished under its MIT licence (© idavidov13). 1,124 words, ~2,748 tokens.
.claude/skills/selectors/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.getByRole > getByLabel > getByPlaceholder > getByText > getByTestId. Move to the next option only when the previous one is not feasible.page.locator('//...') or 'xpath=...').page.locator('.btn-primary'), page.locator('#submit')). Acceptable only as an absolute last resort after ruling out every semantic option.playwright-cli is mandatory before writing any selectors. No guessing from wireframes, docs, or screenshots. Read the playwright-cli skill for the commands.getByText(...) come from enums/{area}/* (e.g. Messages.LOGIN_ERROR). Never hardcode repeated UI strings. See the enums skill.get accessors returning Locator — this is a style/readability convention in the scaffold. Playwright's Locator is lazy, so get and a readonly field set in the constructor behave identically at runtime.Never generate selectors from assumptions or documentation alone. Before writing any locators or page objects, explore the live application by running playwright-cli in the terminal (read the playwright-cli skill). Do not use IDE browser MCP, Cursor browser tools, or any substitute — orchestrator rule: No Substitute UI Exploration. If playwright-cli cannot run, stop and notify the human.
playwright-cli open <APP_URL>
playwright-cli snapshotIf the page fails to load or requires authentication:
<URL> returned [error/login page/blank screen]. I need [credentials / a different URL / instructions to set up auth state] before I can proceed."Navigate through the feature under test the way a real user would. At each page/state, take a snapshot and observe:
playwright-cli snapshot
playwright-cli click <ref>
playwright-cli snapshotTrigger CRUD operations where possible to discover the actual validation messages and success/error feedback the application displays. Capture the exact text rendered — this will go into enums via the enums skill.
Based on what was discovered, draft a test plan covering the critical paths. The plan should identify:
If feature documentation exists (user stories, acceptance criteria, design specs), cross-reference it with the discovered UI to ensure coverage is complete.
No human approval is needed for this plan — proceed directly to generating selectors and page objects.
Now that the real UI is understood, generate selectors using the Priority Order below. Pay special attention to feedback / validation message selectors — these are the most commonly missed.
Use semantic locators in this order. Move to the next option ONLY when the previous one is not feasible:
getByRole() — Accessibility-based. Always the first choice for buttons, links, headings, textboxes, checkboxes, etc.getByLabel() — For form inputs that have associated <label> elements.getByPlaceholder() — For inputs with placeholder text when no label exists.getByText() — For static text content, messages, or non-interactive elements.getByTestId() — Fallback when none of the above produce a reliable locator.// 1. getByRole -- buttons, links, headings, navigation
page.getByRole('button', { name: 'Submit' });
page.getByRole('link', { name: 'Dashboard' });
page.getByRole('heading', { name: 'Welcome' });
page.getByRole('navigation');
page.getByRole('textbox', { name: 'Email' });
page.getByRole('checkbox', { name: 'Remember me' });
// 2. getByLabel -- form fields with labels
page.getByLabel('Email');
page.getByLabel('Password');
// 3. getByPlaceholder -- inputs without labels
page.getByPlaceholder('Search...');
// 4. getByText -- static content
page.getByText('Login successful');
page.getByText(Messages.LOGIN_ERROR); // prefer enums for repeated strings
// 5. getByTestId -- last resort
page.getByTestId('user-avatar');XPath selectors — brittle, unreadable, not accessible.
// FORBIDDEN
page.locator('//div[@id="test"]');
page.locator('xpath=//button[text()="Submit"]');CSS selectors for primary strategy — acceptable only as a page.locator() last resort, never as the default approach.
// AVOID unless absolutely necessary
page.locator('.btn-primary');
page.locator('#submit-button');getByRole().getByLabel() over getByRole('textbox').{ exact: true } or use a more specific role.page.getByRole('form').getByRole('button', { name: 'Save' }).enums skill.Every page object that covers a form or CRUD operation must include selectors for the feedback the application shows after those operations. These are the most commonly missed selectors and the most important for assertion coverage.
| Feedback Type | When It Appears | Selector Strategy |
|---|---|---|
| Success message | After successful create/update/delete | getByText(Messages.CREATED_SUCCESS) or getByRole('alert') |
| Error message | After failed submission or server error | getByText(Messages.SAVE_FAILED) or getByRole('alert') |
| Field validation | On blur or on submit with invalid input | getByText('Email is required') scoped to the form/field container |
| Toast / notification | Temporary banner after any operation | getByRole('status') or getByText() on the toast content |
| Loading state | During async operations | getByRole('progressbar') or getByText('Loading...') |
| Empty state | When a list/table has no data | getByText('No items found') or getByRole('heading') in empty state |
The
Messages.*values shown above are illustrative placeholders. Use the real enum members from your scaffold'senums/{area}/*.ts(e.g.Messages.LOGIN_SUCCESS,Messages.LOGIN_ERROR,Messages.REQUIRED_FIELD). Capture the exact rendered text withplaywright-clifirst and encode it via theenumsskill.
For a full worked code example (page object class with form + feedback locators + action method, plus how the test asserts on it), see references/feedback-selectors-example.md.
If a page object covers a form or CRUD operation but has no selectors for success/error/validation messages, the page object is incomplete. Every form submission or data mutation should have at least a success and error message selector so tests can verify the outcome.
page-objects skill — POM class structure (constructor, three locator sections, action methods), JSDoc rules, fixture registration, component composition.playwright-cli skill — the terminal-only live-app exploration tool used in Phase 1 and Phase 2.enums skill — where Messages.*, ApiEndpoints.*, and other app-defined strings live; live-text verification workflow.common-tasks skill — prompt templates for "Add a New Page Object (With / Without Exploration)" that chain into this skill.debugging skill — strict-mode violations (locator matched multiple), "element not found" / "not attached", and other locator-driven test failures.references/examples.md — three worked examples (new login page, adding feedback selectors, getByRole vs getByLabel decision).references/feedback-selectors-example.md — full page-object code pattern with feedback locators and assertion usage.references/troubleshooting.md — common selector pitfalls (multi-match, XPath temptation, stale locators, missing feedback) and their fixes.© idavidov13, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (references) in .claude/skills/selectors of idavidov13/agentic-playwright.
Open the folder on GitHubat commit f6cbf35
Selectors next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Selectors this skillidavidov13/agentic-playwright | 223 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Python Testingmacalbert/envilder | 138 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Web Application Testinganthropics/skills | 180k | 51 repos | ~966 | Automated safety check: Pass | Apache-2.0 | |
| Playwright CLIsanity-io/sanity | 6.4k | 18 repos | ~1.9k | Automated safety check: Pass | MIT | |
| playwright-cli Browser Automationgithub/gh-aw | 5.4k | 24 repos | ~2.8k | Automated safety check: Pass | MIT | |
| Write and Verify Playwright Testsappsmithorg/appsmith | 41k | — | ~2.9k | Automated safety check: Notes | Apache-2.0 |
macalbert/envilder
Mandatory testing conventions including AAA pattern, test naming, assertions, and mocks.
anthropics/skills
Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.
sanity-io/sanity
Automates browser interactions for web testing, form filling, screenshots, and data extraction.
github/gh-aw
Drives a real browser from the command line with playwright-cli to open pages, interact, mock requests, save state and work with Playwright tests.
appsmithorg/appsmith
Writes a Playwright end-to-end test from a prompt, runs it against a live Appsmith deployment and retries with fixes up to three times until it passes.
langgenius/dify
Guides changes and reviews of the Cucumber and Playwright end-to-end suite under `e2e/`: feature files, step definitions, support code, tags, locators and assertions.
idavidov13/agentic-playwright
Sole entry-point router for AI-assisted work on this Playwright scaffold — owns the 8-phase main workflow (classify → route → explore → plan+confidence → human gate → apply → verify → report), the…
idavidov13/agentic-playwright
Copy-paste AI prompt templates for common Playwright scaffold development tasks — adding page objects, functional/E2E/API tests, Zod schemas, factories, fixtures, and components.
idavidov13/agentic-playwright
Test data strategy for the Playwright scaffold — Faker + Zod factories for dynamic happy-path data, static TS files (.ts with as const exports — never .json) for domain-specific curated invalid…
idavidov13/agentic-playwright
Page Object Model pattern for the Playwright scaffold — class structure, get-accessor locator pattern, action-method conventions, component composition, registration via the page-object fixture, and…
idavidov13/agentic-playwright
Spec file conventions for the Playwright scaffold — imports from test-options.ts, test file structure (describe / beforeEach / test / test.step), single-tag rule, functional vs E2E vs API vs setup…
idavidov13/agentic-playwright
TypeScript type safety conventions for the Playwright scaffold — the "no any" rule, Zod 4 schema patterns (z.strictObject, top-level validators like z.uuid / z.email / z.url / z.int / z.enum)…
Works with
Categories
Selector strategy, exploration-first workflow, locator priority order (getByRole then getByLabel then getByPlaceholder then getByText then getByTestId), and feedback/validation-message selector…. Selectors is an agent skill from idavidov13/agentic-playwright. Selector strategy, exploration-first workflow, locator priority order (getByRole then getByLabel then getByPlaceholder then getByText then getByTestId), and feedback/validation-message selector rules for Playwright page objects.
Selectors fits situations like: creating page objects; updating locators; generating UI tests; deciding which selector strategy to use for a given element.
Run `npx skills add idavidov13/agentic-playwright --skill selectors -a claude-code`. Or copy the skill folder (.claude/skills/selectors in idavidov13/agentic-playwright) into .claude/skills/selectors in your project. Claude Code loads it when a task matches its description.
Run `npx skills add idavidov13/agentic-playwright --skill selectors -a codex`. Or copy the skill folder (.claude/skills/selectors in idavidov13/agentic-playwright) into .agents/skills/selectors in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add idavidov13/agentic-playwright --skill selectors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/selectors, .gemini/skills/selectors, .github/skills/selectors and .opencode/skills/selectors in your project.
SKILL.md names no scripts, command-line tools or credentials: Selectors is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Selectors is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Selectors: Python Testing (macalbert/envilder, 138 stars), Web Application Testing (anthropics/skills, 180k stars), Playwright CLI (sanity-io/sanity, 6.4k stars) and playwright-cli Browser Automation (github/gh-aw, 5.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
idavidov13 (a GitHub user) maintains it in idavidov13/agentic-playwright, which has 223 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on October 1, 2026.
Source: idavidov13/agentic-playwright on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.