docs(python): fix code snippet in emulation guide (#24108)

Fixes https://github.com/microsoft/playwright-python/issues/1997

Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2023-07-08 08:08:10 +00:00 committed by GitHub
parent 50ba25e9a1
commit 37b3531a11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(