Files

15 lines
578 B
Python

from playwright.sync_api import sync_playwright
url = "https://helvoirt-gevelreiniging.mike-197.workers.dev/"
with sync_playwright() as p:
b = p.chromium.launch()
pg = b.new_page(viewport={"width":1440,"height":900})
pg.goto(url, wait_until="networkidle", timeout=60000)
pg.wait_for_timeout(1500)
pg.screenshot(path="public/_shot-home-hero.png")
# scroll to proof gallery
pg.evaluate("document.querySelector('.proof')?.scrollIntoView()")
pg.wait_for_timeout(1200)
pg.screenshot(path="public/_shot-home-proof.png")
b.close()
print("done")