Skip to main content

Playwright enables reliable end-to-end testing for modern web apps.

Project description

Scenographer

Build

WebExtension for Playwright for Python

API Reference

from playwright.async_api import async_playwright
from scenographer.async_api import (
    CHROME_STORE,
    DEFAULT_STORAGE,
    use_feed,
    use_web_extensions
)

# Installing AdBlock
# https://chrome.google.com/webstore/detail/gighmmpiobklfepjocnamgkkbiglidom

await use_feed(DEFAULT_STORAGE, CHROME_STORE).install_extension("gighmmpiobklfepjocnamgkkbiglidom")

async with async_playwright() as playwright:
    args = use_web_extensions()

    chromium = playwright.chromium
    browser = await chromium.launch_persistent_context(
        DEFAULT_STORAGE.get_base_directory(),
        args=args,
        headless=False
    )

    page = browser.pages[0]
    await page.goto("chrome://extensions")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

playwright_scenographer-1.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

playwright_scenographer-1.0.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file playwright_scenographer-1.0.0.tar.gz.

File metadata

  • Download URL: playwright_scenographer-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for playwright_scenographer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ac963da8321255ee338d81dc18e5010fa242b3d24b83923507b3c9720f626714
MD5 cf56efb88f1965b69daefbfc9860a33c
BLAKE2b-256 853ae4f959cba5ecdfc1068a5fe63a7378d9c4ebfdb0e5806f580960e30b9027

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwright_scenographer-1.0.0.tar.gz:

Publisher: release.yml on scenographer/scenographer-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file playwright_scenographer-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for playwright_scenographer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7634047cb3308440424f6ea8190522f3d23efcfc69d197a6af974ff617aba7e9
MD5 a8ae1fd20ca789f8e97966138e2d15da
BLAKE2b-256 310ac1159b37df717f90ff5869b9a9d8d46ca5d63a8d25d2904d2fdc4b225664

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwright_scenographer-1.0.0-py3-none-any.whl:

Publisher: release.yml on scenographer/scenographer-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page