selenium-expert

selenium-expert is a skill for Claude Code from personamanagmentlayer/pcl. It costs 72 tokens per session (1,107 once invoked), scanned A, original, Apache-2.0.

A guide to Selenium, a tool that controls web browsers for automated testing. It covers WebDriver, browser grids, page objects, waits, locators, and supported browsers.

In plain words
What is it for?
Use it to build and troubleshoot end-to-end tests, cross-browser checks, parallel test runs, screenshots, and browser interactions.
Why use it?
It helps avoid unreliable browser tests caused by fragile element selectors, incorrect waits, or differences between browsers.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build and troubleshoot end-to-end tests, cross-browser checks, parallel test runs, screenshots, and browser interactions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/personamanagmentlayer/pcl/selenium-expert
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 personamanagmentlayer/pcl --skill selenium-expert
Clone the repo
git clone --depth 1 https://github.com/personamanagmentlayer/pcl

Made for: Claude Code.

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/selenium-expert.svg)](https://agentmods.dev/skills/personamanagmentlayer/pcl/selenium-expert)
Your own site
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/selenium-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/selenium-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,107 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00072 $0.01107
Opus 5 $0.00036 $0.00553
Sonnet 5 $0.00014 $0.00221
Haiku 4.5 $0.00007 $0.00111

Measured 2d ago against content hash 381e062ad6fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

selenium-expert 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 2d 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.

stdlib/qa/selenium-expert/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Selenium Expert

Core Concepts

Selenium Components

  • WebDriver - Browser automation API
  • Selenium Grid - Distributed test execution
  • IDE - Record and playback tool
  • Locator Strategies - Find elements (ID, CSS, XPath)
  • Wait Mechanisms - Explicit, implicit, fluent waits
  • Actions API - Complex user interactions

Browser Support

  • Chrome/Chromium - ChromeDriver
  • Firefox - GeckoDriver
  • Safari - SafariDriver
  • Edge - EdgeDriver
  • IE - IEDriver (legacy)
  • Remote - Selenium Grid execution

Advanced Features

  • Page Object Model - Design pattern
  • Test Frameworks - TestNG, JUnit, pytest
  • Parallel Execution - Grid and ThreadLocal
  • Screenshots - Visual verification
  • JavaScript Execution - Execute custom scripts
  • Mobile Testing - Appium integration

Best Practices

Locator Strategy

  • Prefer ID over other locators
  • Use CSS selectors over XPath
  • Add data-testid attributes
  • Avoid fragile locators
  • Use relative locators (Selenium 4+)
  • Document locator choices

Wait Strategy

  • Use explicit waits over implicit
  • Set appropriate timeouts
  • Wait for specific conditions
  • Avoid Thread.sleep()
  • Handle stale elements
  • Use fluent waits for complex conditions

Test Design

  • Implement Page Object Model
  • Keep tests independent
  • Use proper test data management
  • Implement proper cleanup
  • Handle flaky tests
  • Log and screenshot failures

Performance

  • Reuse browser sessions when possible
  • Use parallel execution
  • Optimize wait times
  • Close unused windows/tabs
  • Clear cache between tests
  • Monitor Grid performance

Anti-Patterns

Common Mistakes

  • Using sleep instead of waits
  • Hard-coded wait times
  • Not handling stale elements
  • Missing implicit wait configuration
  • Too many XPath locators
  • No error handling

Locator Issues

  • Brittle XPath expressions
  • Using absolute XPath
  • Relying on index positions
  • No fallback locators
  • Missing data-testid attributes
  • Coupling to UI changes

Read the full file on GitHub · 169 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. 2d ago First seen · 169 lines · 72 tokens per session scan A 381e062ad6fc

Subscribe to this mod's changes

selenium-expert is a skill published in the GitHub repository personamanagmentlayer/pcl (40 stars, last pushed today), licensed Apache-2.0. It adds 72 tokens to every session and 1,107 once invoked, about $0.0004 per session on Opus 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-09-05.

Related

Other skills, from other repositories

shaft-web-actions

Use when implementing SHAFT WebDriver or Playwright navigation, browser state, element interaction, upload, drag-and-drop, window, cookie, or screenshot behavior.

ShaftHQ/SHAFT_ENGINE · 36 tokens

automated-e2e-testing

A workflow for turning manual web-app test cases into Playwright end-to-end tests and running them. End-to-end tests check a complete user flow through the website.

fishzjp/qa-skills · 112 tokens

qawolf-cli

Manage QA Wolf through the qawolf CLI. Use when asked to create, update, or list coverage requests, bug reports, or maintenance reports; start a run of flows or tags on the QA Wolf platform or read a run's results; list, set, or delete environment variables; manage environments, flows, or tags; request automation of…

qawolf/cli · 118 tokens

dogfood

Systematic web app QA using Playwright browser automation. Tests across viewports, checks navigation flows, form submissions, error states, accessibility basics, and visual consistency. Produces a structured bug report. Triggers on: "dogfood", "QA", "find bugs", "test this app".

mshadmanrahman/pm-pilot · 63 tokens

Execute BDD scenarios

Execute BDD test scenarios from .feature files using browser automation.

Intai/story-flow · 18 tokens

qa-testing

Run QA testing on a page, feature, or full site at one of three depth tiers (smoke, standard, full). Use this skill whenever the user asks to test a page, audit a site, check for bugs, verify a deploy, run a QA sweep, or review accessibility, performance, or SEO basics. Triggers on test, QA, audit, verify, check, is…

rampstackco/claude-skills-starter · 123 tokens