Current release: 0.1.0 beta.
The public API can change between beta releases.
Cross-platform Playwright fixtures for mobile web testing on real devices:
- iOS Safari, or local WebKit for pre-flight runs
- Android Chrome, or local Chromium for pre-flight runs
The package exports one standard Playwright test. Its driver is selected from
capabilities.platformName ('iOS' or 'Android'), so the same tests, page
objects, and fixture extensions run on both platforms.
const { test, expect } = require('playwright-mobile-lib');
test('opens a page', async ({ page }) => {
await page.goto('https://example.com');
await expect(page).toHaveTitle(/Example/);
});| Topic | Document |
|---|---|
| Install, quickstart, and where tests run | docs/getting-started.md |
| Capabilities, context options, and environment variables | docs/configuration.md |
Fixtures, platform-specific and blocked APIs, and extending test |
docs/api.md |
| Design and contributor module map | docs/architecture.md |
Playwright Mobile Library is released under version 2.0 of the Apache License.
The distributed bundle contains only this project's code. Runtime dependencies are not redistributed.