Skip to Content
Step Helpers

showUrl

Show the page's URL in the rendered video at this point.

showUrl(page) records a marker with page.url(). With .urlBar({ show: 'marked' }), the bar shows that URL from here, through the stage's stripQuery, rewrite and redact.

import { showUrl } from 'playwright-recast'

await page.goto('https://app.example.com/#/workspaces/42')
await showUrl(page)                        // stage durationMs
await showUrl(page, { durationMs: 5000 })  // this call only
OptionTypeDefaultDescription
durationMsnumberstage durationMsHow long the bar stays, in output ms

No-op without setupRecast(test). A marker inside a hidden step shows nothing.