All Projects → microsoft → Playwright Python

microsoft / Playwright Python

Licence: apache-2.0
Python version of the Playwright testing and automation library.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Playwright Python

mitm-play
Man in the middle using Playwright
Stars: ✭ 13 (-99.77%)
Mutual labels:  firefox, chromium, webkit, playwright
Playwright
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
Stars: ✭ 31,513 (+464.45%)
Mutual labels:  firefox, chromium, webkit, playwright
playwright-demos
playwright for scrapping and UI testing / automate testing workflows
Stars: ✭ 65 (-98.84%)
Mutual labels:  chromium, webkit, playwright
Qawolf
🐺 Create browser tests 10x faster
Stars: ✭ 2,912 (-47.84%)
Mutual labels:  firefox, webkit, playwright
Playwright Go
Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
Stars: ✭ 272 (-95.13%)
Mutual labels:  firefox, chromium, webkit
Recorder
A browser extension that generates Cypress, Playwright and Puppeteer test scripts from your interactions 🖱 ⌨
Stars: ✭ 277 (-95.04%)
Mutual labels:  firefox, chromium, playwright
Playwright Sharp
.NET version of the Playwright testing and automation library.
Stars: ✭ 459 (-91.78%)
Mutual labels:  firefox, chromium, webkit
Extension Create
Create modern cross-browser extensions with no build configuration.
Stars: ✭ 167 (-97.01%)
Mutual labels:  firefox, chromium
Tomato Clock
Tomato Clock is a simple browser extension for managing your productivity.
Stars: ✭ 241 (-95.68%)
Mutual labels:  firefox, chromium
WebView4Delphi
WebView4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows.
Stars: ✭ 157 (-97.19%)
Mutual labels:  chromium, webkit
FiremacsWE
Firemacs as a Web Extension
Stars: ✭ 26 (-99.53%)
Mutual labels:  firefox, chromium
Sponsorblock
Skip YouTube video sponsors (browser extension)
Stars: ✭ 3,627 (-35.03%)
Mutual labels:  firefox, chromium
Kdeconnect Chrome Extension
A browser extension to send pages and content from your browser to connected KDE Connect devices.
Stars: ✭ 124 (-97.78%)
Mutual labels:  firefox, chromium
heroku-playwright-buildpack
Buildpack for running Playwright with Chromium and Firefox on Heroku.
Stars: ✭ 34 (-99.39%)
Mutual labels:  chromium, playwright
Interstellar
Cross-platform desktop apps in F# using web tech - https://www.nuget.org/packages/Interstellar.Core/
Stars: ✭ 32 (-99.43%)
Mutual labels:  chromium, webkit
Surfingkeys Conf
A SurfingKeys configuration which adds 130+ key mappings for 20+ sites & OmniBar search suggestions for 50+ sites
Stars: ✭ 137 (-97.55%)
Mutual labels:  firefox, chromium
Wpt
Test suites for Web platform specs — including WHATWG, W3C, and others
Stars: ✭ 3,573 (-36%)
Mutual labels:  firefox, webkit
Surfingkeys
Map your keys for web surfing, expand your browser with javascript and keyboard.
Stars: ✭ 3,787 (-32.17%)
Mutual labels:  firefox, chromium
Archivebox
🗃 Open source self-hosted web archiving. Takes URLs/browser history/bookmarks/Pocket/Pinboard/etc., saves HTML, JS, PDFs, media, and more...
Stars: ✭ 12,383 (+121.8%)
Mutual labels:  firefox, chromium
Chrome Export Passwords
Show all your chromium passwords in format ready to import in other browser like FireFox
Stars: ✭ 80 (-98.57%)
Mutual labels:  firefox, chromium

🎭 Playwright for Python PyPI version Anaconda version Join Slack

Playwright is a Python library to automate Chromium, Firefox and WebKit browsers with a single API. Playwright delivers automation that is ever-green, capable, reliable and fast. See how Playwright is better.

Linux macOS Windows
Chromium 98.0.4714.0
WebKit 15.4
Firefox 94.0.1

Documentation

https://playwright.dev/python/docs/intro

API Reference

https://playwright.dev/python/docs/api/class-playwright

Example

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    for browser_type in [p.chromium, p.firefox, p.webkit]:
        browser = browser_type.launch()
        page = browser.new_page()
        page.goto('http://whatsmyuseragent.org/')
        page.screenshot(path=f'example-{browser_type.name}.png')
        browser.close()
import asyncio
from playwright.async_api import async_playwright

async def main():
    async with async_playwright() as p:
        for browser_type in [p.chromium, p.firefox, p.webkit]:
            browser = await browser_type.launch()
            page = await browser.new_page()
            await page.goto('http://whatsmyuseragent.org/')
            await page.screenshot(path=f'example-{browser_type.name}.png')
            await browser.close()

asyncio.run(main())

Other languages

More comfortable in another programming language? Playwright is also available in

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].