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.testwraps 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file testmu_playwright_python-0.1.3.tar.gz.
File metadata
- Download URL: testmu_playwright_python-0.1.3.tar.gz
- Upload date:
- Size: 60.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d610fb440b886c536e58f1836151a6568bae82b37328e6c397079ee5f8021a5
|
|
| MD5 |
872d53a79bbf88766ed4eefe9f7717e1
|
|
| BLAKE2b-256 |
4daec418860a1aad8b256d1fefd5726852f01448efa82fefb8bbc951a0a414ca
|
File details
Details for the file testmu_playwright_python-0.1.3-py3-none-any.whl.
File metadata
- Download URL: testmu_playwright_python-0.1.3-py3-none-any.whl
- Upload date:
- Size: 47.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e11e8a696f5b7467781268e8be7eabbe6a777166c5b789530992cb7bf543a18
|
|
| MD5 |
13743819ce56ea167568bb9e4a4a9c20
|
|
| BLAKE2b-256 |
2c3800619f7733829e93faabdf13074eab76fdcac4f0ae5bb4c240a4178bde51
|