File size: 438 Bytes
0242ab2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import asyncio
from playwright.async_api import async_playwright


async def main():

    playwright = await async_playwright().start()

    browser = await playwright.chromium.launch(
        headless=False
    )

    page = await browser.new_page()

    await page.goto(
        "https://google.com"
    )

    await page.wait_for_timeout(
        5000
    )

    await browser.close()

    await playwright.stop()


asyncio.run(main())