import playwright.sync_api


def main():
    with playwright.sync_api.sync_playwright() as p:
        browser = p.chromium.launch()
        page = browser.new_page()
        page.goto("https://www.baidu.com")
        print("Playwright + Chromium 环境正常")
        browser.close()


if __name__ == "__main__":
    main()

