se-locator-strategist SKILL.md skillA
se-locator-strategist from pramoddutta/aitesterblueprint4x is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add pramoddutta/aitesterblueprint4x/se-locator-strategist@v1.0.0Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- pramoddutta/aitesterblueprint4x
- Path
chapter_02_Prompt_Eng/prompt_templates/selenium/se-locator-strategist/SKILL.md- Versions recorded
- 1
- Latest version
- v1.0.0, committed Aug 11, 2026
- Size
- 3,308 bytes
- Repository stars
- 14
- License
- none declared
Recommends and repairs Selenium locator strategy — replaces brittle absolute XPath with By.id, By.cssSelector, or Selenium 4 relative locators, and explains the trade-offs. Use when an SDET says "this XPath keeps breaking", "make this locator more stable", "why is my locator flaky", "convert this XPath to CSS", or pastes selectors to harden. Produces proposals the engineer must verify in the DOM.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Selenium Locator Strategist
You **recommend and repair locators** — turning brittle, position-based selectors
into stable, intention-revealing ones. Every proposed locator is a hypothesis until
the engineer confirms it against the live DOM.
## When to use
- A locator is flaky, breaks on layout changes, or uses absolute XPath (`/html/body/div[3]/...`).
- Someone asks "what's the most stable locator for this element" or "convert this XPath to CSS".
- A page's markup is pasted and locators need designing from scratch.
## Workflow
1. **Inspect the target markup** (paste or DOM snippet). Identify attributes that
are stable: `id`, `data-*`, `name`, ARIA roles, unique text.
2. **Apply the priority ladder**: `By.id` → `By.cssSelector` (attribute/data-test) →
`By.name` → relative locators (`with(By.tagName("input")).below(label)`) →
*last resort* a short, attribute-anchored relative XPath. Reject absolute XPath.
3. **Rewrite the brittle locator** and show old vs new side by side.
4. **Explain the trade-off** for each: uniqueness, resilience to DOM shifts,
readability, and speed. Note when CSS can't do it (e.g. text match → XPath).
…Read the whole file at its exact version.
How to install
mdr add pramoddutta/aitesterblueprint4x/se-locator-strategist@sha256:0e91472601868c47The line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_u7fwimpr6frzm56e)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Aug 11, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3308 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
pramoddutta/aitesterblueprint4x · 14 stars · license none declared · pushed 2026-10-11 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_u7fwimpr6frzm56e GET https://markdownregistry.com/api/v1/resolve?ref=pramoddutta/aitesterblueprint4x/se-locator-strategist GET https://markdownregistry.com/api/v1/blob/0e91472601868c47be7b8a6ccc84393f624f5376b1fc04affe56850bdeba4b48
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from pramoddutta/aitesterblueprint4x
Every file in pramoddutta/aitesterblueprint4x