Skip to main content

TestMu binding for Playwright Python — thin test runtime for TestMu/LambdaTest exports

Project description

testmu-playwright-python

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

Installation

pip install 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

Links

License

MIT — see LICENSE

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.0.tar.gz (37.0 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.0-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for testmu_playwright_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2767d324c514cad493a9abfc25db6dde5c79c8ffdf45403831237ef67bb173ad
MD5 0b7848b0bce68eec17a6bb0cd7b96baa
BLAKE2b-256 5474c877910fd7d2a6ef7cd3a0bbea37c72c60d9930477d9528b496aab4ae0f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for testmu_playwright_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42c5b9171c47c8f9a96bb024822b457e91c7e6cc52fb9d6d86366ec8f730607d
MD5 cc7605a6794a6af07551ada52258ef28
BLAKE2b-256 e03a2048ed89a2034a23bc54cbdc7dd7127ae382b9e319c1c5761dcdbd7c5437

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