with sync_playwright() as p: browser = p.chromium.launch( headless=False, # Set to True for headless mode proxy=proxy_config, args=[ "--ignore-certificate-errors", "--ignore-ssl-errors", "--disable-http2", ], ) page = browser.new_page() # Your automation code here browser.close()