Recipes
Short, task-first answers for browser automation work: find the problem, copy the pattern, then adapt it to your test.
Start here
Six representative recipes cover the recurring work: state, network, waiting, files, capture, and frames.
Reuse a login session
Log in once, save the browser state to a file, and load it into fresh contexts.
Mock an API response
Serve a fixed JSON payload for an endpoint so you can reach a rare or fragile UI state.
Wait for an element to disappear
Let a spinner, loader, or toast finish before you assert on what replaces it.
Upload a file
Set files on a file input, upload several at once, and clear the selection without touching the OS dialog.
Record and open a trace
Capture actions, DOM snapshots, and network activity from a run, then inspect the trace locally.
Interact inside an iframe
Scope a locator to a frame with frameLocator, then act and assert inside it.
Browse by task family
Choose the kind of task, then open a focused recipe or the complete category.