selenium-ui-test-generator

selenium-ui-test-generator is a skill for Claude Code from timwukp/agent-skills-best-practice. It costs 70 tokens per session (1,277 once invoked), scanned A, original, MIT.

A guided tool for creating Selenium WebDriver tests, which control a browser to check React or Angular user interfaces.

In plain words
What is it for?
Use it to test flows such as login, form submission, or checkout in a React or Angular front end.
Why use it?
It limits testing to selected important user journeys and asks for reliable element selectors, reducing failed or wasteful browser-test attempts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the engineering-skills plugin — 18 skills shipped together

Good fit Use it to test flows such as login, form submission, or checkout in a React or Angular front end.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timwukp/agent-skills-best-practice/selenium-ui-test-generator
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 timwukp/agent-skills-best-practice --skill selenium-ui-test-generator
Clone the repo
git clone --depth 1 https://github.com/timwukp/agent-skills-best-practice

Made for: Claude Code.

Or install engineering-skills, the plugin that ships this one along with the rest of its 18 skills.

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-ui-test-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/timwukp/agent-skills-best-practice/selenium-ui-test-generator/github.svg)](https://agentmods.dev/skills/timwukp/agent-skills-best-practice/selenium-ui-test-generator)
Your own site
<a href="https://agentmods.dev/skills/timwukp/agent-skills-best-practice/selenium-ui-test-generator"><img src="https://agentmods.dev/badge/skills/timwukp/agent-skills-best-practice/selenium-ui-test-generator/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-ui-test-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/timwukp/agent-skills-best-practice/selenium-ui-test-generator"><img src="https://agentmods.dev/badge/skills/timwukp/agent-skills-best-practice/selenium-ui-test-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,277 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.00070 $0.01277
Opus 5 $0.00035 $0.00639
Sonnet 5 $0.00014 $0.00255
Haiku 4.5 $0.00007 $0.00128

Measured 10d ago against content hash 0d0479ee4027, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

selenium-ui-test-generator 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_ui_tests.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/skills/selenium-ui-test-generator/SKILL.md · 157 lines

How it starts

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

Selenium UI Test Generator

Cost warning: UI tests cost 30-50 credits each (vs. 10-15 for unit tests). Always inform the user of this before generating.

Instructions

Step 1: Flow Selection

Ask the user to pick 2-3 critical flows maximum (e.g., login, form submission, checkout). Provide cost comparison so they can make an informed choice.

Step 2: Get Selectors Upfront

This is critical for avoiding wasted iterations. Ask the user to provide:

  1. data-testid attributes (preferred)
  2. Or element IDs/classes from browser dev tools

Without real selectors, tests will likely fail and waste credits. If the user cannot provide selectors, warn them of the higher failure risk before proceeding.

See references/react-testid-guide.md for the recommended data-testid pattern. Load selectors from assets/selectors-config.json when available.

Step 3: Generate ONE Test at a Time

Unlike unit/API skills, generate only 1 UI test per iteration due to the high cost.

Use explicit waits and data-testid selectors:

@Test
void testUserLogin() {
    driver.get("http://localhost:3000/login");

    WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
    wait.until(ExpectedConditions.presenceOfElementLocated(
        By.cssSelector("[data-testid='login-form']")
    ));

    driver.findElement(By.cssSelector("[data-testid='username-input']"))
        .sendKeys("[email protected]");
    driver.findElement(By.cssSelector("[data-testid='password-input']"))
        .sendKeys("password123");
    driver.findElement(By.cssSelector("[data-testid='login-button']"))
        .click();

    wait.until(ExpectedConditions.urlContains("/dashboard"));
    assertTrue(driver.getCurrentUrl().contains("/dashboard"));
}

STOP. Ask the user to run the test before continuing.

Step 4: Validation

python scripts/validate_ui_tests.py <TestClassName>

Add --headed to see the browser during debugging.

Step 5: Fix or Skip (STRICT -- Max 2 Attempts)

Read the full file on GitHub · 157 lines

Files

What ships with it

5 files 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. 10d ago First seen · 157 lines · 70 tokens per session scan A 0d0479ee4027

Subscribe to this mod's changes

selenium-ui-test-generator is a skill published in the GitHub repository timwukp/agent-skills-best-practice (10 stars, last pushed 3d ago), licensed MIT. It adds 70 tokens to every session and 1,277 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

agent-browser

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

code-yeongyu/oh-my-openagent · 51 tokens

playwright-cli

Automates browser interactions for testing and validating your own web applications using playwright-cli. Use when you need terminal-first browser control for navigation, form filling, screenshots, tracing, bound browser sessions, debugging, or generating Playwright test code. Only use against applications you own or…

testdino-hq/playwright-skill · 64 tokens

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

datit309/supergraph · 35 tokens

devlab-web-visual-ops

A browser-based operations guide for web applications, including single-page apps, micro-frontends, and multi-page sites. It covers observing, navigating, interacting, inspecting, validating, and capturing pages with browser automation and visual fallbacks.

seed-forge/harness-ai-kit · 176 tokens

webapp-testing

Browser-tests a local webapp end to end — starts the app, installs Playwright if missing, writes a spec for the critical path plus edge cases, runs headless, captures screenshots, console and network logs on failure, and reports a pass/fail table with repro steps. Degrades to curl smoke tests when no browser is…

alebgl77/claude-inc · 103 tokens

e2e-playwright

Use when writing end-to-end browser tests with Playwright. Covers resilient locators, auto-waiting, network interception, authentication reuse, parallelization, and eliminating flakiness.

nimadorostkar/Claude-Skills-collection · 43 tokens