File size: 534 Bytes
db4810d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import asyncio
from playwright.async_api import async_playwright
async def test_full_screen(start_fullscreen: bool, maximize: bool):
async with async_playwright() as p:
browser = await p.chromium.launch(
headless=False,
args=['--start-maximized'],
)
context = await browser.new_context(no_viewport=True, viewport=None)
page = await context.new_page()
await page.goto('https://google.com')
await asyncio.sleep(10)
await browser.close()
if __name__ == '__main__':
asyncio.run(test_full_screen(False, False))
|