mcpField
S
selenium

selenium

github.com/full-stack-skillsTesting & quality264 installsUpdated 4w ago
Repository

About selenium

A skill for writing and maintaining browser automation tests with Selenium WebDriver. It covers element selection, waits, browser and CI setup, and practices for repeatable tests and failure diagnostics.

Key features

  1. 01WebDriver test scripting
  2. 02Element selection and waits
  3. 03Multi-browser and Grid guidance
  4. 04Headless and CI workflows
  5. 05Screenshots and logs on failure
  6. 06Repeatable test practices

Use cases

  1. 01Creating browser-based E2E tests
  2. 02Waiting for dynamic page elements
  3. 03Running tests in CI or Grid
  4. 04Diagnosing failures with screenshots and logs

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/full-stack-skills/testing-skills --skill selenium

After installing, type/seleniumin Claude Code to confirm it loaded.

Bundled filesagents/openai.yamlLICENSE.txt

Details

From the project README

When to use this skill

Use this skill whenever the user wants to:

  • 用 Selenium WebDriver 编写或维护浏览器自动化测试
  • 定位元素、等待、多浏览器与 CI 集成(如 Grid)

How to use this skill

  1. 环境:安装浏览器驱动(ChromeDriver/GeckoDriver)或 Selenium 4 管理;对应语言绑定(Python/Java/JS 等)。
  2. 脚本:driver.get、find_element、click、send_keys;显式/隐式等待;截图与 cookie。
  3. CI:无头模式或 Grid;并行与报告(如 Allure)。

Best Practices

  • 显式等待替代 sleep;优先 id、css、相对定位。
  • 用例独立、可重复;失败时截图与日志。
  • 敏感信息与 URL 用配置;Grid 与版本匹配。

Keywords

selenium, WebDriver, 浏览器自动化, E2E

Comments

Markdown supported