Skip to main content

Testmu binding for Playwright Python — thin test runtime for LambdaTest exports

Project description

testmu-playwright-python

Testmu binding for Playwright Python — a thin test runtime for running LambdaTest exported tests locally or on the LambdaTest grid.

Installation

# From TestPyPI (pre-release)
pip install --index-url https://test.pypi.org/simple/ \
  --extra-index-url https://pypi.org/simple/ \
  testmu-playwright-python

Quick Start

import testmu

testmu.configure(
    username="YOUR_LT_USERNAME",
    access_key="YOUR_LT_ACCESS_KEY",
)

@testmu.test
async def my_test(page):
    async with testmu.step("Open site"):
        await page.goto("https://example.com")

    async with testmu.step("Verify title"):
        testmu.expect(page).to_have_title("Example Domain")

testmu.run(my_test)

Features

  • Test decorator@testmu.test wraps async Playwright tests with session lifecycle
  • Step trackingtestmu.step(...) context manager for structured test steps
  • Variable systemvar() / set_var() for template-based test data
  • Helpers — vision queries, API/DB/JS execution, network assertions, SmartUI snapshots
  • Reporters — local console and LambdaTest cloud reporting
  • Self-healing locators — automatic locator recovery via heal patch

Requirements

  • Python >= 3.11
  • Playwright >= 1.57.0

License

Proprietary - LambdaTest

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

testmu_playwright_python-0.1.4.tar.gz (60.5 kB view details)

Uploaded Source

Built Distribution

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

testmu_playwright_python-0.1.4-py3-none-any.whl (47.7 kB view details)

Uploaded Python 3

File details

Details for the file testmu_playwright_python-0.1.4.tar.gz.

File metadata

  • Download URL: testmu_playwright_python-0.1.4.tar.gz
  • Upload date:
  • Size: 60.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for testmu_playwright_python-0.1.4.tar.gz
Algorithm Hash digest
SHA256 194025d967ac8d12629c2a50538dc518c394b3acaa4de1ab37c5542967084e70
MD5 f61bf60bde0934e65d80c32ec1ac5549
BLAKE2b-256 191f8273bb6f087f63537c5f48fa6c2c8ac9dc2a923b3db4eaca41437967bfc2

See more details on using hashes here.

File details

Details for the file testmu_playwright_python-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for testmu_playwright_python-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 83107e8eeb28b036c621f7afc92277a0b0a32e2b73dad737a1814ea398a5c9f2
MD5 1e1b12e9c2dc89e0dbd8c4613af679e8
BLAKE2b-256 f9eb4930e8ebef516700c86a8a25b01fbb11e357c523079bf9c855de8658b7ae

See more details on using hashes here.

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