docs(trace-viewer): fix broken examples (#18654)

Fixes https://github.com/microsoft/playwright-python/issues/1616
This commit is contained in:
Max Schmitt 2022-11-08 14:22:14 -08:00 committed by GitHub
parent b8bd4f7a48
commit 06353e9905
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,7 @@ context = await browser.new_context()
# Start tracing before creating / navigating a page.
await context.tracing.start(screenshots=True, snapshots=True, sources=True)
page = await context.new_page()
await page.goto("https://playwright.dev")
# Stop tracing and export it into a zip archive.
@ -53,6 +54,7 @@ context = browser.new_context()
# Start tracing before creating / navigating a page.
context.tracing.start(screenshots=True, snapshots=True, sources=True)
page = context.new_page()
page.goto("https://playwright.dev")
# Stop tracing and export it into a zip archive.