| import asyncio |
| from playwright.async_api import async_playwright |
|
|
| async def main(): |
| async with async_playwright() as p: |
| browser = await p.chromium.launch(headless=True, args=["--no-sandbox"]) |
| page = await browser.new_page(viewport={"width": 1280, "height": 720}) |
| |
| |
| print("Checking Dashboard...") |
| await page.goto("https://kenqtade-altamira.hf.space/", wait_until="networkidle") |
| await page.screenshot(path="dashboard.png", full_page=True) |
| |
| |
| |
| |
| |
| await browser.close() |
|
|
| if __name__ == "__main__": |
| asyncio.run(main()) |
|
|