Automation playground

Each box below is one thing test automation has to handle. Every control has a stable id; the result of each action is written to a line you can assert on. No sign-in needed.

1. Alerts, confirms and prompts

Switch to the browser dialog, read its text, accept or dismiss it.

2. Waiting for things

Text that appears after 3 seconds, a button enabled after 5, and an element you show and hide.

3. Hover menu

The menu only exists while the mouse is over it.

4. Double-click and right-click

5. Drag and drop

Drag vendors onto the shortlist. The Move buttons do the same without a mouse.

Available

    Shortlist

      6. A form inside an iframe

      Switch into the frame to use it, and back out afterwards.

      This text is outside the frame.

      7. New tabs and windows

      Switch to the new window, check its title, close it and come back.

      Open scenarios in a new tab

      8. Auto-suggest

      Type at least two letters, then pick from the suggestions (or use the arrow keys and Enter).

      9. An element whose id changes

      This button gets a new random id on every page load. Find it by its text or its data-testid instead.

      10. Shadow DOM

      These controls live inside a shadow root. Reach them through #shadow-host.

      11. Scrolling and loading more

      Scroll inside the box. "Load more" appears at the bottom of the list.

        12. Other form controls

        13. Reading a web table

        Find the row for a vendor and read another cell in it — the classic XPath exercise.
        VendorCountryQuote (CAD)Delivery (days)Status
        Northwind Office SupplyCanada11,480.005Received
        Maple Leaf StationersCanada10,920.509Received
        Pixel Point ComputersUnited States82,300.0021Under review
        ByteWorks TechnologyCanada79,999.9914Received
        Harbour Catering Co.Canada4,350.002Accepted
        Lagos Print WorksNigeria2,875.2530Declined