Playwright Java
davila7/claude-code-templates
Scaffold, write, debug, and enhance enterprise-grade Playwright E2E tests in Java using Page Object Model, JUnit 5, Allure reporting, and parallel execution.
Author and maintain versioned Selenium WebDriver tests with Java and JUnit 5.
$ npx skills add fugazi/test-automation-skills-agents --skill webapp-selenium-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install fugazi/test-automation-skills-agents webapp-selenium-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/fugazi/test-automation-skills-agents.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/webapp-selenium-testing .claude/skills/webapp-selenium-testing && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "webapp-selenium-testing" agent skill from https://github.com/fugazi/test-automation-skills-agents/tree/main/skills/webapp-selenium-testing into .claude/skills/webapp-selenium-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webapp-selenium-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/fugazi/test-automation-skills-agents/tree/main/skills/webapp-selenium-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add fugazi/test-automation-skills-agents --skill webapp-selenium-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install fugazi/test-automation-skills-agents webapp-selenium-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fugazi/test-automation-skills-agents.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/webapp-selenium-testing .agents/skills/webapp-selenium-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "webapp-selenium-testing" agent skill from https://github.com/fugazi/test-automation-skills-agents/tree/main/skills/webapp-selenium-testing into .agents/skills/webapp-selenium-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webapp-selenium-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add fugazi/test-automation-skills-agents --skill webapp-selenium-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install fugazi/test-automation-skills-agents webapp-selenium-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fugazi/test-automation-skills-agents.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/webapp-selenium-testing .cursor/skills/webapp-selenium-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "webapp-selenium-testing" agent skill from https://github.com/fugazi/test-automation-skills-agents/tree/main/skills/webapp-selenium-testing into .cursor/skills/webapp-selenium-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webapp-selenium-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/fugazi/test-automation-skills-agents.git --path skills/webapp-selenium-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add fugazi/test-automation-skills-agents --skill webapp-selenium-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install fugazi/test-automation-skills-agents webapp-selenium-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fugazi/test-automation-skills-agents.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/webapp-selenium-testing .gemini/skills/webapp-selenium-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "webapp-selenium-testing" agent skill from https://github.com/fugazi/test-automation-skills-agents/tree/main/skills/webapp-selenium-testing into .gemini/skills/webapp-selenium-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webapp-selenium-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install fugazi/test-automation-skills-agents webapp-selenium-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add fugazi/test-automation-skills-agents --skill webapp-selenium-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/fugazi/test-automation-skills-agents.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/webapp-selenium-testing .github/skills/webapp-selenium-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "webapp-selenium-testing" agent skill from https://github.com/fugazi/test-automation-skills-agents/tree/main/skills/webapp-selenium-testing into .github/skills/webapp-selenium-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webapp-selenium-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add fugazi/test-automation-skills-agents --skill webapp-selenium-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install fugazi/test-automation-skills-agents webapp-selenium-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/fugazi/test-automation-skills-agents.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/webapp-selenium-testing .opencode/skills/webapp-selenium-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "webapp-selenium-testing" agent skill from https://github.com/fugazi/test-automation-skills-agents/tree/main/skills/webapp-selenium-testing into .opencode/skills/webapp-selenium-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "webapp-selenium-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
webapp-selenium-testingAuthor and maintain versioned Selenium WebDriver tests with Java and JUnit 5.
Webapp Selenium Testing is an agent skill from fugazi/test-automation-skills-agents. Author and maintain versioned Selenium WebDriver tests with Java and JUnit 5. Use for creating, debugging, or running Selenium specs, implementing Page Objects, handling explicit waits, capturing screenshots, or setting up Maven test projects. Supports Chrome, Firefox, and Edge. Keywords: Selenium WebDriver, Java, JUnit 5, Page Object Model, explicit waits, Maven, screenshots.
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 22 other files, including scripts and reference files (for example `references/file-map-template.md`, `references/locator-strategies-debugging.md` and `references/locator-strategies-hierarchy.md`).
It sits in Testing & QA, covering Browser testing. It works with Selenium, Java, JUnit and Playwright. The repository describes itself as: A practical library of agents, instructions, and skills designed specifically for QA Automation Engineers, focusing on production-oriented solutions. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 65a72d5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/, which the agent can run.
Shell commands in SKILL.md call:
mvnFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
some-third-party.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Webapp Selenium Testing loads about 2.8k tokens when it runs, and up to ~18k if it reads all its reference files. Until then it costs about 101 tokens; SKILL.md has 936 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from fugazi/test-automation-skills-agents at commit 65a72d5, republished under its MIT licence (© fugazi). 936 words, ~2,764 tokens.
.claude/skills/webapp-selenium-testing/SKILL.md (or your agent's skills folder). This skill also uses 21 other files; get the full folder from GitHub.This skill provides patterns and best practices for browser-based test automation using Selenium WebDriver within a Java/Maven environment.
Activation: This skill is triggered when you need to create Selenium tests, debug browser automation, implement Page Objects, or set up Java test infrastructure.
playwright-e2e-testing).playwright-cli).api-testing).playwright-regression-testing).| Component | Requirement |
|---|---|
| Java JDK | 11 or higher (17+ recommended) |
| Maven | 3.6 or higher |
| Browser | Chrome, Firefox, or Edge |
Note: Selenium Manager (included in Selenium 4.6+) automatically handles browser driver binaries.
Separate page interaction logic from test code:
src/
├── main/java/
│ └── com/example/
│ ├── pages/ # Page Object classes
│ │ └── LoginPage.java
│ ├── components/ # Reusable UI components
│ ├── factories/ # WebDriver factory
│ ├── utils/ # Utilities
│ └── base/ # Base classes
└── test/java/
└── com/example/
└── tests/ # Test classes
└── LoginTest.javaAlways use explicit waits over Thread.sleep():
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement element = wait.until(
ExpectedConditions.visibilityOfElementLocated(By.id("element-id"))
);import static org.assertj.core.api.Assertions.assertThat;
assertThat(driver.getTitle())
.contains("Expected Title");
assertThat(errorMessage.isDisplayed())
.as("Error message should be visible")
.isTrue();Analyze requirements
Create Page Objects
BasePage with common methodsImplement test class
@DisplayName, @Tag annotationsRun tests
mvn test -Dtest=YourTest
mvn test -Dtest=YourTest -Dheadless=trueRun in non-headless mode
mvn test -Dtest=FailingTest -Dheadless=falseCapture screenshot on failure
((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);Check browser console logs
driver.manage().logs().get(LogType.BROWSER);Verify locator in browser DevTools
document.querySelector('[data-testid="element"]');Adjust wait conditions - increase timeout or change ExpectedCondition
Use the included setup script
# Run from skills/webapp-selenium-testing/scripts/
.\setup-maven-project.ps1 -ProjectName "my-tests"Or use the pom-template.xml
scripts/pom-template.xml to your project as pom.xmlCreate base classes
WebDriverFactory - creates and manages WebDriver instancesBasePage - common page interaction methodsBaseTest - setup/teardown logicThread.sleep() - Use explicit waitsid, data-testid, semantic CSS@AfterEach@DisplayName - Human-readable test descriptionsThis skill is designed for testing your own application. Navigating to third-party or public websites introduces untrusted content into the AI-assisted session.
localhost or an internal dev/staging server.
Never hardcode external URLs (e.g. https://some-third-party.com) in generated tests;
always read the base URL from configuration (ConfigReader, env vars, or config.properties).driver.getPageSource() returns the full HTML of the
current page. In an AI-assisted session that HTML becomes part of the AI context and can carry
prompt injection payloads. Use attachPageSource only in controlled environments and always
apply a size limit (see references/page-object-model-basics.md).getText(), getValue(),
and similar methods may originate from server-rendered content. Never pass them unvalidated
to dynamic logic that interprets strings as commands.attachScreenshot is safer for debugging; it
captures visual state without exposing raw HTML markup to the AI context.| Problem | Cause | Solution |
|---|---|---|
| Element not found | Not loaded yet | Use WebDriverWait with visibilityOfElementLocated |
| Stale element reference | DOM changed | Re-locate element before interaction |
| Click intercepted | Overlay blocking | Scroll into view or wait for overlay |
| Timeout exception | Element never visible | Verify locator, check for iframes |
| Session not created | Driver mismatch | Selenium Manager handles this |
| Flaky tests | Race conditions | Add proper waits, use stable locators |
| Command | Purpose |
|---|---|
mvn test | Run all tests |
mvn test -Dtest=LoginTest | Run specific class |
mvn test -Dtest=LoginTest#methodName | Run specific method |
mvn test -Dgroups=smoke | Run tagged tests |
mvn test -Dheadless=true | Run headless |
- name: Run Selenium Tests
run: mvn clean test -Dheadless=true -Dbrowser=chromeThread.sleep() anywhere — use WebDriverWait with ExpectedConditions.private final By fields in the Page Object.driver.findElement() chained inline in tests instead of going through the POM.getDriver()) — breaks encapsulation and leaks lifecycle.WebDriverWait with ExpectedConditions@AfterEach or @AfterAll includes driver.quit() in try-finally block© fugazi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 21 other files (scripts, references) in skills/webapp-selenium-testing of fugazi/test-automation-skills-agents.
Open the folder on GitHubat commit 65a72d5
Webapp Selenium Testing next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Webapp Selenium Testing this skillfugazi/test-automation-skills-agents | 247 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Playwright Javadavila7/claude-code-templates | 32k | 3 repos | ~3.4k | Automated safety check: Pass | MIT | |
| Debug Playwright Prowquay/quay | 2.8k | — | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| RStudio Selenium to Playwright Migrationrstudio/rstudio | 5.1k | — | ~3.6k | Automated safety check: Pass | Custom licence | |
| Quay Prow Triagequay/quay | 2.8k | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Playwright Stealth Verifyliarjsdev/liarjs-skills | 518 | 1 repos | ~1.3k | Automated safety check: Notes | MIT |
davila7/claude-code-templates
Scaffold, write, debug, and enhance enterprise-grade Playwright E2E tests in Java using Page Object Model, JUnit 5, Allure reporting, and parallel execution.
quay/quay
Deep-dive diagnosis of a Playwright test failure already isolated to one Quay Prow/OpenShift CI run: downloads its GCS artifacts (results.json, JUnit, build/pod logs, Jaeger traces), classifies real…
rstudio/rstudio
Converts RStudio Python Selenium electron tests into TypeScript Playwright tests, checking each against a live RStudio before counting it as migrated.
quay/quay
Diagnose any Quay Prow job failure end to end: prowjob.json - top-level build log - JUnit - resolved failing step - Playwright results.json when the failing step is Playwright, continuing through…
liarjsdev/liarjs-skills
Check whether a Playwright, Puppeteer, Selenium or CDP-driven browser presents a coherent fingerprint, using liarjs as a library against a Page you already have - navigator.webdriver, HeadlessChrome…
microsoft/playwright-dotnet
Roll Playwright .NET to a new version
fugazi/test-automation-skills-agents
Accessibility testing toolkit using Selenium WebDriver 4+ with Java 21+ and axe-core engine.
fugazi/test-automation-skills-agents
Test REST and GraphQL endpoint contracts using Playwright request fixture (TypeScript) or REST Assured (Java).
fugazi/test-automation-skills-agents
Create QA artifacts from requirements: test plans, test conditions/cases, bug reports, regression suites, traceability, and exploratory charters.
fugazi/test-automation-skills-agents
Accessibility testing for web applications using Playwright (@playwright/test), TypeScript, and axe-core.
fugazi/test-automation-skills-agents
A guided interview to challenge and validate QA automation plans, test strategies, and framework designs before implementation.
fugazi/test-automation-skills-agents
Drive a live browser from the CLI with playwright-cli to navigate, interact, snapshot, and capture evidence.
Works with
Categories
Author and maintain versioned Selenium WebDriver tests with Java and JUnit 5. Webapp Selenium Testing is an agent skill from fugazi/test-automation-skills-agents. Author and maintain versioned Selenium WebDriver tests with Java and JUnit 5.
Webapp Selenium Testing fits situations like: running Selenium specs; implementing Page Objects; handling explicit waits; capturing screenshots.
Run `npx skills add fugazi/test-automation-skills-agents --skill webapp-selenium-testing -a claude-code`. Or copy the skill folder (skills/webapp-selenium-testing in fugazi/test-automation-skills-agents) into .claude/skills/webapp-selenium-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add fugazi/test-automation-skills-agents --skill webapp-selenium-testing -a codex`. Or copy the skill folder (skills/webapp-selenium-testing in fugazi/test-automation-skills-agents) into .agents/skills/webapp-selenium-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add fugazi/test-automation-skills-agents --skill webapp-selenium-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/webapp-selenium-testing, .gemini/skills/webapp-selenium-testing, .github/skills/webapp-selenium-testing and .opencode/skills/webapp-selenium-testing in your project.
Going by SKILL.md and its folder, Webapp Selenium Testing needs the command-line tools its instructions call (mvn).
SKILL.md names 1 domain. In commands or code: some-third-party.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Webapp Selenium Testing is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Webapp Selenium Testing: Playwright Java (davila7/claude-code-templates, 32k stars), Debug Playwright Prow (quay/quay, 2.8k stars), RStudio Selenium to Playwright Migration (rstudio/rstudio, 5.1k stars) and Quay Prow Triage (quay/quay, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
fugazi (a GitHub user) maintains it in fugazi/test-automation-skills-agents, which has 247 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 3, 2026.
Source: fugazi/test-automation-skills-agents on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.