最終更新:2026-01-28 (水) 09:30:29 (21d)
playwright
Top / playwright
https://pypi.org/project/playwright/
https://github.com/Microsoft/playwright-python
Playwright/Python
- Playwright supports two variations of the API: synchronous and asynchronous. If your modern project uses asyncio, you should use async API
https://playwright.dev/python/docs/library
playwright.sync_api
playwright.async_api
コマンド
help
Usage: playwright [options] [command] Options: -V, --version output the version number -h, --help display help for command Commands: open [options] [url] open page in browser specified via -b, --browser codegen [options] [url] open page and generate code for user actions install [options] [browser...] ensure browsers necessary for this version of Playwright are installed uninstall [options] Removes browsers used by this installation of Playwright from the system (chromium, firefox, webkit, ffmpeg). This does not include branded channels. install-deps [options] [browser...] install dependencies necessary to run browsers (will ask for sudo permissions) cr [options] [url] open page in Chromium ff [options] [url] open page in Firefox wk [options] [url] open page in WebKit screenshot [options] <url> <filename> capture a page screenshot pdf [options] <url> <filename> save page as pdf show-trace [options] [trace] show trace viewer help [command] display help for command

