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.2.tar.gz (60.2 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.2-py3-none-any.whl (47.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testmu_playwright_python-0.1.2.tar.gz
  • Upload date:
  • Size: 60.2 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.2.tar.gz
Algorithm Hash digest
SHA256 9565a403883ad7105267a9df866110f9bc1fb2d26df75039ce63e8ee339ad323
MD5 0db33f12a4a2ee42e0e55ae806194ee0
BLAKE2b-256 5446b48a5312b15e69dd07898ea67febaa48ecf2bf36c34f47d7cb31439aab4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for testmu_playwright_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d60abf04fd38c227726e3e5d9553e536b0f10bd63c69672e99d5b8b673683a6f
MD5 74e712d1daab1cd5015658d57333d444
BLAKE2b-256 8af11277906e58ab42295e6fc9da85dfa4b4178b40ba79c0bc7f93dbab7caf81

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