Skip to main content

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 tracking — testmu.step(...) context manager for structured test steps
  • Variable system — var() / 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

Metadata

Release files for testmu-playwright-python 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for testmu-playwright-python 0.1.4
File Size Uploaded
testmu_playwright_python-0.1.4.tar.gz 60.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for testmu-playwright-python 0.1.4
File Interpreter ABI Platform
testmu_playwright_python-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 108.3 kB

Release files / testmu_playwright_python-0.1.4.tar.gz

Download URL testmu_playwright_python-0.1.4.tar.gz
Size 60.5 kB
Tags Source
SHA-256 checksum
How to use checksums
194025d967ac8d12629c2a50538dc518c394b3acaa4de1ab37c5542967084e70
BLAKE2b-256 checksum
How to use checksums
191f8273bb6f087f63537c5f48fa6c2c8ac9dc2a923b3db4eaca41437967bfc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / testmu_playwright_python-0.1.4-py3-none-any.whl

Download URL testmu_playwright_python-0.1.4-py3-none-any.whl
Size 47.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83107e8eeb28b036c621f7afc92277a0b0a32e2b73dad737a1814ea398a5c9f2
BLAKE2b-256 checksum
How to use checksums
f9eb4930e8ebef516700c86a8a25b01fbb11e357c523079bf9c855de8658b7ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page