Build tours
You build tours on your real app with the Driver Studio extension for Chrome. Click the elements you want to point at and write a line for each step.
On this page
The extension
Open your app in Chrome, then open the extension. It lists the tours for the site you are on. Click Make a tour for this page to start a new one. Each tour has a title, the site it runs on and the page it starts on.
Steps
A tour is a list of steps. There are three kinds:
| Step | What it does |
|---|---|
| Tooltip | Points at an element on the page. Click the element to pick it. |
| Popup | A message in the middle or a corner of the screen, not tied to an element. |
| Go to page | Sends people to another page, so one tour can cover several pages. |
Write each step in the editor. You can add bold text, links and images, and change the button labels. A tour can have up to 100 steps.
Make elements easy to find
When you pick an element, Driver Studio saves a selector that should still match after a reload or a release. It tries, in this order: an id that doesn't look generated, a test attribute (data-testid, data-test, data-cy, data-qa or data-tour), aria-label, name, a link's href, then title or placeholder. Only then does it fall back to classes and position.
It skips ids that look generated (React useId, long numbers or hashes) and classes that change with state (active, open, selected...), CSS-in-JS hashes and utility classes. To make your app easy to tour, give key buttons and links a data-testid or a clear aria-label.
<button data-testid="new-report" aria-label="New report">New</button>When a step moves on
By default people press Next. You can also move on:
- When the highlighted element is clicked.
- When another element is clicked.
- When an element appears.
- When the user types in a field.
- Automatically after a delay.
- When the user visits a page.
Preview and publish
Press Preview on the page to play the tour where you are. Drafts only show for you. When you publish, the tour goes live for the people, pages and trigger set in its Who and when settings in the dashboard.
Later edits stay as unpublished changes until you press Publish changes, so you can fix a live tour without people seeing half-done work. Unpublishing pauses a tour without deleting it.
Preview on your site
Teammates without the extension can still see a tour on the real app. On the tour page in the dashboard, press Preview on my site (in the ⋯ menu on a phone). Your app opens in a new tab at the tour's first page and plays the tour as it is saved now, draft or live.
- The link works for 10 minutes and only plays where it is opened. Other visitors see nothing. Tours that span pages keep going as you move between them in that tab.
- It skips the tour's audience, trigger and frequency, so it always starts.
- Nothing counts: no Started, Finished or Skipped, and no Health reports.
- A small Preview badge sits in the corner. Restart plays it again (it says Go there when you are on another page), Exit stops it.
The preview needs the snippet on your app. If Driver Studio hasn't seen it on that address yet, the dashboard asks first: go to Install, or Try anyway if you just added it. See Install options. After 10 minutes the link stops working and the badge says so; press Preview on my site again for a new one.
Editing a tour
Open the tour in the extension to change steps on the page, or in the dashboard to change who sees it, when it starts, and its theme. Every tour also has a Health tab that shows steps that need a look. See Self-healing.
Fix the words from the dashboard
To fix a typo you don't need the extension. On the tour's Steps tab, press Edit words on a step to change its text and its button label. Each line becomes a paragraph, and saving new text drops bold, italics and links.
- It saves straight away. On a live tour the editor says Changes the live tour now, and visitors see the new words at once. On a draft it just saves the draft.
- A toast offers Undo, which puts the step back as it was.
- If a teammate saved the tour after you opened it, nothing is overwritten. The editor says who changed it and when, keeps your text, and offers Reload to get the latest version.
Adding, moving or removing steps, and changing what they point at, happens in the extension.