# Selenium WebDriver

> Selenium WebDriver expertise for cross-browser automation and legacy system testing

- Skill: `majiayu000/selenium-webdriver` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/selenium-webdriver`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/selenium-webdriver/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/selenium-webdriver

---


# Selenium WebDriver Skill

## Overview

This skill provides expert-level capabilities for Selenium WebDriver-based automation, enabling cross-browser testing, grid configuration, and integration with mobile testing through Appium.

## Capabilities

### WebDriver Management
- WebDriver initialization and configuration
- Browser driver management (ChromeDriver, GeckoDriver, etc.)
- Session handling and cleanup

### Cross-Browser Testing
- Chrome, Firefox, Safari, Edge support
- Handle browser-specific quirks and capabilities
- Configure browser options and preferences

### Grid Configuration
- Selenium Grid setup for parallel execution
- Node registration and management
- Docker-based grid configuration

### Element Interaction
- Handle dynamic waits and element location strategies
- Implement robust element locators
- Handle iframes, windows, and alerts

### Page Object Model
- Generate Page Object Model patterns
- Implement reusable page components
- Create fluent APIs for test readability

### Mobile Integration
- Mobile browser testing configuration
- Appium integration for native apps

## Target Processes

- `e2e-test-suite.js` - Full E2E test suite implementation
- `cross-browser-testing.js` - Cross-browser compatibility testing
- `mobile-testing.js` - Mobile web testing

## Dependencies

- `selenium-webdriver` - WebDriver client
- Browser-specific drivers (chromedriver, geckodriver)
- Java (for Selenium Grid)

## Usage Example

```javascript
{
  kind: 'skill',
  skill: {
    name: 'selenium-webdriver',
    context: {
      action: 'execute-tests',
      browsers: ['chrome', 'firefox', 'edge'],
      gridUrl: 'http://localhost:4444/wd/hub',
      parallel: true
    }
  }
}
```

## Configuration

The skill supports both local WebDriver execution and remote Selenium Grid connections.

