Skip to content

Instantly share code, notes, and snippets.

@hed0rah
Created March 26, 2026 02:52
Show Gist options
  • Select an option

  • Save hed0rah/2e05650cd8d1f341bdb551ccec4ade1f to your computer and use it in GitHub Desktop.

Select an option

Save hed0rah/2e05650cd8d1f341bdb551ccec4ade1f to your computer and use it in GitHub Desktop.
Playwright test
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