File size: 263 Bytes
bfabb90
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from playwright.async_api import async_playwright

async def take_screenshot(page, path="screenshot.jpg"):
    await page.screenshot(path=path)
    return path

async def click_element(page, center_x, center_y):
    await page.mouse.click(center_x, center_y)