Playwright Python Browser Automation Library for Cross-Browser Testing
Playwright for Python is Microsoft's cross-browser automation library for Chromium, Firefox, and WebKit. It gives agents and test systems one API for navigation, screenshots, form interaction, assertions, and headless execution across local and CI environments.
Prerequisites
node.js, python, go, java
Installation
Requirements and caveats from upstream:
🎭 Playwright for Python [
await page.screenshot(path=f'example-{browser_type.name}.png')
Extracted from upstream docs: https://raw.githubusercontent.com/microsoft/playwright-python/HEAD/README.md