Skip to content

Commit

Permalink
docs(python): fix code snippet in emulation guide (#24108)
Browse files Browse the repository at this point in the history
Fixes microsoft/playwright-python#1997

Signed-off-by: Max Schmitt <max@schmitt.mx>
  • Loading branch information
mxschmitt authored Jul 8, 2023
1 parent 50ba25e commit 37b3531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/emulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ context = browser.new_context(
)

# Resize viewport for individual page
await page.set_viewport_size({"width": 1600, "height": 1200})
page.set_viewport_size({"width": 1600, "height": 1200})

# Emulate high-DPI
context = browser.new_context(
Expand Down

0 comments on commit 37b3531

Please sign in to comment.