You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
auto/demo/demo_playwright.py

9 lines
295 B

# -*- coding: utf-8 -*-
from playwright.sync_api import sync_playwright
with sync_playwright() as playwright:
browser = playwright.chromium.launch(headless=False)
page = browser.new_page()
page.goto('https://example.com')
page.screenshot(path='example.png')
browser.close()