selenium-patterns-skill

selenium-patterns-skill is a skill for Claude Code, Codex from LambdaTest/agent-skills. It costs 110 tokens per session (2,140 once invoked), scanned A, original, MIT.

A set of rules for writing and reviewing Selenium WebDriver browser tests. Selenium WebDriver is a tool that controls a real browser to test a website.

In plain words
What is it for?
Use it to review or stabilise Selenium tests and page objects. It covers explicit waits, locator choices, driver creation and cleanup, page-object structure, and common WebDriver exceptions.
Why use it?
It reduces flaky tests caused by fixed sleeps, mixed waiting methods, unstable selectors, incorrect driver setup, or drivers that are not closed properly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review or stabilise Selenium tests and page objects. It covers explicit waits, locator choices, driver creation and cleanup, page-object structure, and common WebDriver exceptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lambdatest/agent-skills/selenium-patterns-skill
Install

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.

Any agent
npx skills add LambdaTest/agent-skills --skill selenium-patterns-skill
Clone the repo
git clone --depth 1 https://github.com/LambdaTest/agent-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for selenium-patterns-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/lambdatest/agent-skills/selenium-patterns-skill/github.svg)](https://agentmods.dev/skills/lambdatest/agent-skills/selenium-patterns-skill)
Your own site
<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.

agentmods 80×15 button for selenium-patterns-skill

Your own site · 80×15
<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>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,140 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 16d ago against content hash 19ef2f8f9ed6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

selenium-patterns-skill/SKILL.md · 186 lines

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

  1. Read the existing base test class or fixture, one page object and one test. Match them.
  2. 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.
  3. 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() or time.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_located for 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:

  1. id when it is stable and human-written
  2. A dedicated test attribute: [data-testid='...']
  3. name, or a short CSS selector anchored on a stable attribute
  4. XPath only for what CSS cannot express, such as matching by visible text or moving to a parent

Read the full file on GitHub · 186 lines

Files

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.

Changes

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.

  1. 16d ago First seen · 186 lines · 110 tokens per session scan A 19ef2f8f9ed6

Subscribe to this mod's changes

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.

Related

selenium-patterns-skill compared with skills from other repositories

selenium-patterns-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
selenium-patterns-skillLambdaTest/agent-skillsSkill40116d agoMITA110Claude Code, Codex
cua-driverdavidondrej/skillsSkill4.4kyesterdayMITA68Claude Code, Codex
webapp-testinganthropics/skillsSkill204ktodaynoneA35Claude Code
codex-computer-usedavidondrej/skillsSkill4.4kyesterdayMITA53Claude Code, Codex
test-electron-appPostHog/posthog-fossSkill736todayMITA112Claude Code
smoke-testSkyvern-AI/skyvernSkill24ktodayAGPL-3.0A50Claude Code, Codex
playwright-clitestdino-hq/playwright-skillSkill4298d agoMITA64Claude Code, Codex