Playwright Test Runner avatar

Playwright Test Runner

Try for free

No credit card required

Go to Store
Playwright Test Runner

Playwright Test Runner

jindrich.bar/playwright-test
Try for free

No credit card required

Run Playwright tests across numerous browser configurations with Apify. Create your tests in seconds and get comprehensive test reports faster than ever.

You can access the Playwright Test Runner programmatically from your own applications by using the Apify API. You can 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.

1echo '{
2  "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    });"
3}' |
4apify 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

1npm i -g apify-cli
2apify login

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 2 monthly users

  • 5 stars

  • >99% runs succeeded

  • Created in Feb 2023

  • Modified 2 years ago