Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LambdaTest/agent-skills --skill selenium-patterns-skillgit clone --depth 1 https://github.com/LambdaTest/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lambdatest/agent-skills/selenium-patterns-skill)<a href="https://agentmods.dev/skills/lambdatest/agent-skills/selenium-patterns-skill"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/selenium-patterns-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lambdatest/agent-skills/selenium-patterns-skill"><img src="https://agentmods.dev/badge/skills/lambdatest/agent-skills/selenium-patterns-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.02140 |
| Opus 5.5 | $0.00044 | $0.00856 |
| Sonnet 5.5 | $0.00022 | $0.00428 |
| Haiku 4.5 | $0.00011 | $0.00214 |
Grade A, and why
selenium-patterns-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Selenium patterns
Apply these when you write or review Selenium WebDriver code. Examples are in Python and Java; the same rules hold in every binding.
Before you write anything
- Read the existing base test class or fixture, one page object and one test. Match them.
- Check the Selenium version. On 4.6 or later, Selenium Manager resolves the driver binary, so do not add WebDriverManager or hard-coded driver paths.
- Find where the driver is created and where
quit()is called. New tests must go through the same path.
Waits
This is where most Selenium flakiness comes from.
- Use explicit waits for every interaction with something that loads or changes.
- Do not mix implicit and explicit waits. Together they produce unpredictable timeouts. Set the implicit wait to 0 and use
WebDriverWait. - Never use
Thread.sleep()ortime.sleep(). - Wait for the condition the next step needs. "Present in the DOM" is weaker than "visible", which is weaker than "clickable".
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
wait = WebDriverWait(driver, 10)
wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, "[data-testid='checkout']"))).click()
wait.until(EC.url_contains("/order/confirmation"))
assert "Thank you" in wait.until(
EC.visibility_of_element_located((By.CSS_SELECTOR, "h1"))
).text
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
wait.until(ExpectedConditions.elementToBeClickable(By.cssSelector("[data-testid='checkout']"))).click();
wait.until(ExpectedConditions.urlContains("/order/confirmation"));
- Wait for things to go away too:
EC.invisibility_of_element_locatedfor spinners and overlays before you click what they covered. - Put the wait inside the page object method so tests cannot forget it.
Locators
Priority order:
idwhen it is stable and human-written- A dedicated test attribute:
[data-testid='...'] name, or a short CSS selector anchored on a stable attribute- XPath only for what CSS cannot express, such as matching by visible text or moving to a parent
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 16d ago First seen · 186 lines · 110 tokens per session scan A 19ef2f8f9ed6
selenium-patterns-skill is a skill published in the GitHub repository LambdaTest/agent-skills (401 stars, last pushed 16d ago), licensed MIT. It adds 110 tokens to every session and 2,140 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.
selenium-patterns-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| selenium-patterns-skillLambdaTest/agent-skills | Skill | 401 | 16d ago | MIT | A | 110 | Claude Code, Codex |
| cua-driverdavidondrej/skills | Skill | 4.4k | yesterday | MIT | A | 68 | Claude Code, Codex |
| webapp-testinganthropics/skills | Skill | 204k | today | none | A | 35 | Claude Code |
| codex-computer-usedavidondrej/skills | Skill | 4.4k | yesterday | MIT | A | 53 | Claude Code, Codex |
| test-electron-appPostHog/posthog-foss | Skill | 736 | today | MIT | A | 112 | Claude Code |
| smoke-testSkyvern-AI/skyvern | Skill | 24k | today | AGPL-3.0 | A | 50 | Claude Code, Codex |
| playwright-clitestdino-hq/playwright-skill | Skill | 429 | 8d ago | MIT | A | 64 | Claude Code, Codex |