Created
March 26, 2026 02:52
-
-
Save hed0rah/2e05650cd8d1f341bdb551ccec4ade1f to your computer and use it in GitHub Desktop.
Playwright test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python -c " | |
| import asyncio from playwright.async_api import async_playwright | |
| async def test(): | |
| pw = await async_playwright().start() | |
| browser = await pw.chromium.launch(headless=True) | |
| page = await browser.new_page() | |
| await page.goto('https://example.com') | |
| print('Title:', await page.title()) | |
| await browser.close() | |
| asyncio.run(test()) | |
| " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment