SuperAPI AI Directory

selenium

Testing & quality

View repository

Updated 10-16 10:15

About this skill

When to use this skill

Use this skill whenever the user wants to:

  • Write or maintain browser automation tests with Selenium WebDriver
  • Locating elements, waits, multi-browser and CI integration (such as Grid)

How to use this skill

  1. Environment: Install browser drivers (ChromeDriver/GeckoDriver) or use Selenium 4 Manager; use the corresponding language bindings (Python/Java/JS, etc.).
  2. Script: driver.get, find_element, click, send_keys; explicit/implicit waits; screenshots and cookies.
  3. CI: Headless mode or Grid; parallelization and reporting (such as Allure).

Best Practices

  • Use explicit waits instead of sleep; prefer id, css, and relative locators.
  • Test cases should be independent and repeatable; take screenshots and logs on failure.
  • Use configuration for sensitive information and URLs; match Grid and version.

Keywords

selenium, WebDriver, browser automation, E2E