skillfed

webapp-selenium-testing

This skill equips QA engineers with a practical framework for constructing and maintaining Selenium WebDriver tests using Java and JUnit 5. It provides tool-agnostic guidance and patterns designed for production environments, helping teams automate web application testing efficiently and reliably.

webapp-selenium-testing teaches you to create and maintain Selenium WebDriver tests using Java and JUnit 5. You'll learn to structure test classes with JUnit 5 annotations (@Test, @BeforeEach, @AfterEach), initialize WebDriver instances in setup methods, and organize assertions using frameworks like AssertJ. The skill covers test lifecycle management, parameterized tests, and integration patterns that work across production environments.

AI-generated summary based on this skill's SKILL.md

203 36 MIT updated by fugazi

Install

fugazi/test-automation-skills-agents/webapp-selenium-testing · repository language: Java

CLI (skillfed)coming soon
git clone https://github.com/fugazi/test-automation-skills-agents
cp -r test-automation-skills-agents/skills/webapp-selenium-testing ~/.claude/skills/webapp-selenium-testing

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I write Selenium tests with JUnit 5?

webapp-selenium-testing teaches you to create and maintain Selenium WebDriver tests using Java and JUnit 5. You'll learn to structure test classes with JUnit 5 annotations (@Test, @BeforeEach, @AfterEach), initialize WebDriver instances in setup methods, and organize assertions using frameworks like AssertJ. The skill covers test lifecycle management, parameterized tests, and integration patterns that work across production environments.

What is the Page Object Model and how do I implement it in Selenium Java?

webapp-selenium-testing provides comprehensive guidance on implementing Page Object Model architecture for browser test automation. This pattern encapsulates page elements and interactions into reusable classes, reducing test maintenance overhead. You'll learn to create page objects that represent UI sections, define element locators as class fields, and expose high-level methods that abstract away implementation details—enabling tests that remain stable as the application evolves.

How can I handle element synchronization with explicit waits in Selenium?

webapp-selenium-testing covers handling element synchronization with explicit waits and verification of UI behavior. Rather than relying on implicit waits, you'll implement explicit wait conditions using WebDriverWait and ExpectedConditions to ensure elements are present, visible, or clickable before interaction. The skill teaches you to apply wait strategies that prevent flaky tests, handle stale element references, and verify dynamic content reliably in production test suites.

How do I debug Selenium test failures and troubleshoot browser automation issues?

webapp-selenium-testing equips you with practical debugging techniques for failing Selenium tests and browser automation issues. You'll learn to capture screenshots on failure, examine WebDriver logs, identify element-not-found errors, and diagnose timing problems. The skill provides patterns for troubleshooting common issues like stale element references, flaky tests, and synchronization failures—helping you resolve production test failures efficiently.

How do I set up a Selenium Maven project and configure WebDriver for multiple browsers?

webapp-selenium-testing guides you through setting up Maven test infrastructure and configuring WebDriver for multiple browsers including Chrome, Firefox, and Edge. You'll learn to manage dependencies in pom.xml, configure WebDriver instances for headless and headed execution, and implement browser-agnostic test suites. The skill also covers CI/CD integration patterns, enabling your tests to run reliably across different environments and browser combinations.

What are Selenium WebDriver best practices for production test automation?

webapp-selenium-testing provides tool-agnostic guidance and patterns designed for production environments, covering best practices for reliable web application testing. You'll learn to structure tests for maintainability, use explicit waits instead of sleeps, implement proper element locator strategies, handle dynamic content, and design test suites that scale. The skill emphasizes patterns that reduce flakiness, improve debugging, and ensure your test automation framework remains stable as your application grows.

SKILL.md

rendered from the published skill — quoted content, verbatim

Web Application Testing with Selenium WebDriver

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.

When to Use This Skill

  • Create Selenium WebDriver tests with JUnit 5
  • Implement Page Object Model (POM) architecture
  • Handle synchronization with Explicit Waits
  • Verify UI behavior with AssertJ assertions
  • Debug failing browser tests or DOM interactions
  • Set up Maven test infrastructure for a new project
  • Capture screenshots for debugging
  • Validate complex user flows and form submissions
  • Test across multiple browsers (Chrome, Firefox, Edge)

Prerequisites

| Component | Requirement

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 8 files
skills/webapp-selenium-testing/LICENSE.txt
skills/webapp-selenium-testing/SKILL.md
skills/webapp-selenium-testing/references/file-map-template.md
skills/webapp-selenium-testing/references/locator_strategies.md
skills/webapp-selenium-testing/references/page_object_model.md
skills/webapp-selenium-testing/references/wait_strategies.md
skills/webapp-selenium-testing/scripts/pom-template.xml
skills/webapp-selenium-testing/scripts/setup-maven-project.ps1

Related skills

Tags

browser-automation ui-testing test-infrastructure cross-browser-validation qa-automation dom-interaction test-synchronization test-debugging java-testing-framework element-locators