← Back to WebDriver University

AI Testing Playground

Real-world testing challenges built for AI-assisted automation. Designed for Claude Code, Playwright, and modern QA workflows.

1. Dynamic Selectors

The login form looks simple — but the element classes change every time the page loads. Can you write a test that still finds the right elements?

2. Flaky Loader

Click the button and content appears — eventually. Sometimes fast, sometimes slow. Write a test that waits for it reliably every time.

3. Multi-Step Form

A three-step form with validation at every stage. Write tests that complete the full journey and catch every error along the way.

Step 1 of 3

4. Auto-Dismiss Toast

A notification pops up and disappears in seconds. Your test needs to catch it while it's there — then confirm it's gone.

5. Re-Enable Delay

Click the button and it disables itself. Then it comes back. Write a test that handles both states without guessing on timing.

6. Moving Target

The button keeps moving around the screen. Write a test that catches it — without just getting lucky.

7. Conditional Validation

Fill in your email and an extra field might appear — or it might not. Write tests that handle both scenarios correctly.

8. Race Condition

Two operations run at the same time and only one wins. Write a test that always asserts the right outcome — no matter who finishes first.

9. Lazy-Rendered Element

The element isn't on the page yet. It only appears after something happens. Write a test that waits for it properly.

Core Challenges

10. iFrame Login

The login form lives inside an iframe. All interactions must be scoped to that frame.

11. Shadow DOM Widget

The form's internals are hidden inside a web component. Most test tools can reach inside — some can't.

12. Employee Directory

Filter by department, sort by salary, assert exact values.

Name Department Salary Status Start Date

13. File Upload Validator

Upload a file, then assert name, size, and type.

14. Priority Board

Drag tasks between columns. Assert final board state.

Backlog
Fix login bug
Write unit tests
Update docs
In Progress

Debugging Traps
Debug Trap

15. Stale Element

Items silently rebuild every 2.5s. Click an old reference and you'll be clicking a ghost.

Debug Trap

16. Invisible Success

Submit works. The result is written to the DOM — just not where you can see it. Inspect the DOM after submitting, then write a test that finds it.

Hint: inspect #ghost-result in the DOM after submitting.

Debug Trap

17. Timing Mismatch

Assert the right thing at the right time.

Counter: 0

Captured:

Debug Trap

18. Network States

Success, error, timeout — one wait strategy won't catch all three.

Debug Trap

19. JS Dialog Traps

Unhandled dialogs block test execution entirely. If the browser offers to suppress further dialogs, do not check it — refresh the page to reset.

Review & Refactor

20. localStorage Session

Assert localStorage directly — the UI can lie.

21. Attribute vs Visual State

The button text always updates correctly — but occasionally aria-pressed doesn't. The UI looks fine. Assert the attribute, not the text, and your test will catch what the eye misses.

22. Mutation Observer

Items are added asynchronously. Fixed waits will fail — wait for the state, not the clock.

Items: 0 / 10

    Advanced Challenges

    23. API Intercept

    Live GET request to a real hosted JSON endpoint. Intercept the request to mock, modify, or simulate a failed response.

    24. New Tab / Popup

    Opens a new tab. Capture the popup and assert its content like any other page.

    Capstone — Full E2E Flow

    25. Shop & Checkout Flow

    Generate tests. Break them. Fix them. Refactor them. Review them. This is the whole course in one flow.

    1 — Products 2 — Details 3 — Review
    Wireless Headphones
    £89.99
    30hr battery, active noise cancellation, over-ear.
    USB-C Hub 7-in-1
    £34.99
    HDMI 4K, 3× USB-A, SD card, 100W PD charging.
    Mechanical Keyboard TKL
    £129.99
    Cherry MX Red, per-key RGB, PBT double-shot keycaps.
    Laptop Stand Aluminium
    £49.99
    Adjustable 15–25cm, folding, fits up to 17" laptops.

    Cart 0

    Cart is empty
    Total: £0.00

    26. Booking Portal

    A complete booking flow with API calls to intercept, form validation, and edge cases — a full end-to-end capstone project.

    Open Booking Portal →
    Accessibility Testing

    27. Accessibility Suite

    29 components with real accessibility problems built in — low contrast, missing labels, broken keyboard navigation, and more. A practice ground for learning to find and test these issues.

    Open Accessibility Suite →
    Notification triggered