hide
hide(
fn):Promise<void>
Defined in: hide.ts:36
Runs fn while suppressing recording. The hidden section is cut from the
final video — viewers never see it.
Use it for logins, navigations, page loads, and any setup that would bore a human to tears. Especially useful at the very start of a video so you jump straight into the live app.
Cannot be nested — calling hide() inside another hide() throws.
Parameters
Section titled “Parameters”() => void | Promise<void>
Returns
Section titled “Returns”Promise<void>
Example
Section titled “Example”await hide(async () => { await page.goto('/login') await page.fill('input[type="email"]', 'admin@example.com') await page.fill('input[type="password"]', 'secret') await page.click('[type="submit"]') await page.waitForURL('/dashboard')})// video starts here — dashboard is already open