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.1.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.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for playwright_scenographer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0ee2c634a88d1df82f0be95cb00ad5a7e85ea6b1c35c47bcdf7b5df8183166d0
MD5 4ea80026eb3981a3816483da6ad7767f
BLAKE2b-256 b78716ca4460a202263e2526b6f1a246838fb39b717148e047446d36a5f238ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwright_scenographer-1.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for playwright_scenographer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c804ba492ed5a9c9c60b8113b31b35693a20097be712f037bc6b45e156aa7847
MD5 b42d38822606f1f69fadb837979a58be
BLAKE2b-256 1f3f0c9a1972b512f98078be11fe72451c96bb3f443fd91547d7a183f27b56b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwright_scenographer-1.0.1-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