TestMu binding for Playwright Python — thin test runtime for TestMu-exported tests on the LambdaTest grid
Actively maintained. Last release 3 days ago. A safe choice.
pip install testmuai-playwright-bindingstestmuai-playwright-bindings
TestMu binding for Playwright Python — a thin test runtime for running TestMu-exported tests locally or on the LambdaTest grid.
Installation
pip install testmuai-playwright-bindings
Then install the Playwright browsers (one-time):
playwright install
Quick Start
Set credentials (LambdaTest grid) once in your environment:
export LT_USERNAME="your_username"
export LT_ACCESS_KEY="your_access_key"
Then write a test:
import testmu
@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"):
await testmu.expect(page).to_have_title("Example Domain")
testmu.run(my_test)
testmu.run() is a synchronous entry point — it sets up the session,
launches the browser, runs your test, and tears everything down.
Configuration
Configuration is sourced from environment variables. See .env.example for the full list. The most common ones:
| Variable | Purpose | Required |
|---|---|---|
LT_USERNAME | LambdaTest grid username | For cloud features |
LT_ACCESS_KEY | LambdaTest grid access key | For cloud features |
TESTMU_HEADLESS | true (default) or false | No |
TESTMU_SMART | to enable vision/heal AI features |