docs(trace-viewer): fix broken examples (#18654)
Fixes https://github.com/microsoft/playwright-python/issues/1616
This commit is contained in:
parent
b8bd4f7a48
commit
06353e9905
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue