Playwright is a browser automation library maintained by Microsoft. It wraps CDP (see BA-001) into a high level API and adds support for Chromium, Firefox and WebKit with a single interface. It also handles the browser lifecycle for you.
First install it:
pip install pytest-playwright
playwright install
Enter fullscreen mode






