OpenHands/tests/e2e/check_playwright.py
Graham Neubig 426350224b
Add Playwright-based end-to-end testing workflow (#10116)
Co-authored-by: openhands <openhands@all-hands.dev>
2025-08-14 18:59:06 +00:00

16 lines
344 B
Python

import sys
try:
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
if p.chromium.executable_path:
print('chromium_found')
sys.exit(0)
else:
print('chromium_not_found')
sys.exit(1)
except Exception as e:
print(f'error: {e}')
sys.exit(1)