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:
parent
50ba25e9a1
commit
37b3531a11
|
|
@ -198,7 +198,7 @@ context = browser.new_context(
|
||||||
)
|
)
|
||||||
|
|
||||||
# Resize viewport for individual page
|
# 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
|
# Emulate high-DPI
|
||||||
context = browser.new_context(
|
context = browser.new_context(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue