Dynamic & timing
Changing states
Text, attributes, overlays and shadow content that change after a delay: wait for each kind of change.
Practice tasks
- Wait for the status text to change from Loading… to Loaded.
- Wait for data-state to become ready, then click the button.
- Click the button under the overlay only after the overlay is gone.
- Wait for the element that appears inside the shadow root.
- Wait for the content swap and assert the old node is detached.
- Wait until the random-delay element appears (1 to 6 seconds).