Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix playwright.dev generation error #5360

Merged
merged 2 commits into from
Feb 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/src/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def main():

# Setup context however you like.
context = await browser.new_context() # Pass any options
await context.route('**/*', lambda route: route.continue_())
await context.route('**/*', lambda route: route.resume())

# Pause the page, and start recording manually.
page = await context.new_page()
Expand All @@ -111,7 +111,7 @@ async def main():
asyncio.run(main())
```

```python async
```python sync
from playwright.sync_api import sync_playwright

with sync_playwright() as p:
Expand All @@ -120,7 +120,7 @@ with sync_playwright() as p:

# Setup context however you like.
context = browser.new_context() # Pass any options
context.route('**/*', lambda route: route.continue_())
context.route('**/*', lambda route: route.resume())

# Pause the page, and start recording manually.
page = context.new_page()
Expand Down