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
- 01WebDriver test scripting
- 02Element selection and waits
- 03Multi-browser and Grid guidance
- 04Headless and CI workflows
- 05Screenshots and logs on failure
- 06Repeatable test practices
Use cases
- 01Creating browser-based E2E tests
- 02Waiting for dynamic page elements
- 03Running tests in CI or Grid
- 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 seleniumAfter installing, type/seleniumin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlLICENSE.txt
Details
From the project READMEWhen to use this skill
Use this skill whenever the user wants to:
- 用 Selenium WebDriver 编写或维护浏览器自动化测试
- 定位元素、等待、多浏览器与 CI 集成(如 Grid)
How to use this skill
- 环境:安装浏览器驱动(ChromeDriver/GeckoDriver)或 Selenium 4 管理;对应语言绑定(Python/Java/JS 等)。
- 脚本:driver.get、find_element、click、send_keys;显式/隐式等待;截图与 cookie。
- CI:无头模式或 Grid;并行与报告(如 Allure)。
Best Practices
- 显式等待替代 sleep;优先 id、css、相对定位。
- 用例独立、可重复;失败时截图与日志。
- 敏感信息与 URL 用配置;Grid 与版本匹配。
Keywords
selenium, WebDriver, 浏览器自动化, E2E
Comments
Markdown supported