Docs
Pages and waits
Multi-page guides that wait for your app.
Guides across pages
A step can name the page it happens on: "page": "/app/tasks/new", with * for one path segment (/app/tasks/*). Later steps keep that page until another step names one. The recorder fills it in for you, with record ids as *.
- On the wrong page the guide doesn’t search, since a lookalike element on another page is not the one meant. It waits with “Open /app/tasks/new to continue” and carries on when the viewer gets there.
- Give it your router and it goes there itself:
createTrace({ trace, navigate: (path) => router.push(path) }). Only pages without*are navigated to; thepageevent tells you about every one. - If the viewer clicks through ahead of the guide, it catches up to the first later step on their page. It never skips its own start.
- For apps that route without the address bar, pass
currentPath.
Waiting for the app
A wait step holds until its element exists. With until it holds until something has happened. It works in both modes: Show me waits for the viewer’s own click to take effect, Do it for me waits for its own.
{ "type": "wait", "until": { "text": "Saved" }, "say": "Saving…" } // the page shows "Saved"
{ "type": "wait", "target": { "sel": "#status" }, "until": { "text": "Running" } } // that element does
{ "type": "wait", "target": { "sel": ".spinner" }, "until": { "gone": true }, "timeout": 60000 } // it went awayThe check runs at most every 250 ms, and only after the page has changed. It times out after timeout ms (default 5 s, at most 10 minutes) with a stalled event (reason: 'until-timeout').
Carrying on after a full page load
Pass a resumeKey. The step is kept in sessionStorage, and a guide created with the same key on the next page, within 10 minutes, picks up from there. It works in both modes.
The full reference is in the README on GitHub.