
Playwright Test Runner
Pricing
Pay per usage

Playwright Test Runner
Run Playwright tests across numerous browser configurations with Apify. Create your tests in seconds and get comprehensive test reports faster than ever.
0.0 (0)
Pricing
Pay per usage
5
Total users
30
Monthly users
6
Runs succeeded
>99%
Last modified
2 years ago
You can access the Playwright Test Runner programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
$echo '{< "testCode": "import { test, expect } from '\''@playwright/test'\''; \\n test('\''has title'\'', async ({ page }) => { \\n await page.goto('\''https://playwright.dev/'\'');\\n // Expect a title \\"to contain\\" a substring.\\n await expect(page).toHaveTitle(/Playwright/); \\n });\\n test('\''get started link'\'', async ({ page }) => {\\n await page.goto('\''https://playwright.dev/'\'');\\n // Click the get started link.\\n await page.getByRole('\''link'\'', { name: '\''Get started'\'' }).click();\\n // Expects the URL to contain intro. \\n await expect(page).toHaveURL(/.*intro/); \\n });"<}' |<apify call jindrich.bar/playwright-test --silent --output-dataset
Playwright Test Runner API through CLI
The Apify CLI is the official tool that allows you to use Playwright Test Runner locally, providing convenience functions and automatic retries on errors.
Install the Apify CLI
$npm i -g apify-cli$apify login
Other API clients include: