Menu
FeaturesPricingAboutFAQGuidesNPS calculatorTemplatesSign inView 7-day trial

Handling a target that loads after the page

Wait for the element, then point at it

A step aimed at a button that renders after a network call will fire at an empty spot on the screen. The fix is to make the step wait for the selector, then scroll the element into view before it shows. Write the selector against a stable attribute on the button, not its position in the page, so a layout change does not retarget the step.

Pick the selector that survives a refactor

Prefer data-tour="new-invoice" over .btn-primary:nth-child(3). If the button is missing, the step should pause rather than advance, because advancing past a missing target teaches people to ignore the tour. Confirm the selector in the browser's element inspector before publishing, and again after the next release of the page.

Sample step entry

Step 3 — Create first invoice
Selector: [data-tour="new-invoice"]
Page rule: /billing/*
Behavior: wait for element, scroll into view, then open
If missing: hold step; do not mark done

Illustrative check. A billing page loads its table from an API in about a second. With a positional selector, the step pointed at the loading row and the tooltip floated over blank space; three of five testers dismissed it. After switching to the data-tour attribute and the wait behavior, the tooltip landed on the button each run, and the same testers reached the next step.

Handle the late-load exception

If the call fails, the button never appears and the step holds forever. Add a page rule so the step only runs on /billing/*, and give the step a close action. A person who closes it should not see it again on that device, and the hold should not count as completion in the finish counts.

Related: Onboarding Tours features.