- Notifications
You must be signed in to change notification settings - Fork994
Python version of the Playwright testing and automation library.
License
NotificationsYou must be signed in to change notification settings
microsoft/playwright-python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
🎭Playwright for Python


Playwright is a Python library to automateChromium,Firefox andWebKit browsers with a single API. Playwright delivers automation that isever-green,capable,reliable andfast.See how Playwright is better.
Linux | macOS | Windows | |
---|---|---|---|
Chromium 136.0.7103.25 | ✅ | ✅ | ✅ |
WebKit 18.4 | ✅ | ✅ | ✅ |
Firefox 137.0 | ✅ | ✅ | ✅ |
https://playwright.dev/python/docs/intro
https://playwright.dev/python/docs/api/class-playwright
fromplaywright.sync_apiimportsync_playwrightwithsync_playwright()asp:forbrowser_typein [p.chromium,p.firefox,p.webkit]:browser=browser_type.launch()page=browser.new_page()page.goto('http://playwright.dev')page.screenshot(path=f'example-{browser_type.name}.png')browser.close()
importasynciofromplaywright.async_apiimportasync_playwrightasyncdefmain():asyncwithasync_playwright()asp:forbrowser_typein [p.chromium,p.firefox,p.webkit]:browser=awaitbrowser_type.launch()page=awaitbrowser.new_page()awaitpage.goto('http://playwright.dev')awaitpage.screenshot(path=f'example-{browser_type.name}.png')awaitbrowser.close()asyncio.run(main())
More comfortable in another programming language?Playwright is also available in
About
Python version of the Playwright testing and automation library.
Topics
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.