# Selenium test hardening

> Fixes flaky Selenium tests with explicit waits, better locators and page objects, so browser tests pass reliably.

- Page: https://youraiskill.com/skill/lambdatest-selenium-patterns-skill
- What it does: Review and hardening rules for Selenium WebDriver tests: explicit waits, locator priority, driver lifecycle, page objects and the exceptions that cause most failures. Use when reviewing, fixing or stabilising existing Selenium tests or page objects, or when the user mentions WebDriverWait, "implicit wait", StaleElementReferenceException, NoSuchElementException, ElementClickInterceptedException, Thread.sleep or "Selenium best practices". To scaffold a new Selenium project or run on TestMu AI cloud, use selenium-skill.
- Niches: testing, coding
- Licence: MIT
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (2 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
