Playwright on Sauce Labs
Playwright is a testing framework that you can use to test your web apps — either locally in Docker or remotely on Sauce Labs Cloud — using the saucectl
CLI. This gives you the flexibility to run your tests in the environment that best suits your organization, while still benefiting from the Sauce Labs vast collection of devices, browser, and operating system combinations and test result data analytics.
Supported Languages
JavaScript and TypeScript are supported out of the box. Cucumber.js is not directly supported by Playwright. However, Playwright can be used as the backing automation framework. See this setup guide for more information.
System Requirements
You can run saucectl
locally via Docker (Installation Requirements) or remotely via the Sauce Labs cloud, so system requirements vary depending on your intention. The following reference serves as a general guide:
- macOS
- Linux
- Windows
Supported Testing Platforms
Sauce Labs supports the following test configurations for Playwright:
- Sauce Labs
- Docker
Playwright Version | Supported Platforms | Supported Browsers | End of Life |
---|---|---|---|
1.29.2 | macOS: 11.00, 12 | Chromium, Chrome, Firefox, Webkit | Jan 15, 2024 |
Windows: 10, 11 | |||
1.28.1 | macOS: 11.00, 12 | Chromium, Chrome, Firefox, Webkit | Nov 30, 2023 |
Windows: 10, 11 | |||
1.27.1 | macOS: 11.00, 12 | Chromium, Firefox, Webkit | Oct 20, 2023 |
Windows: 10, 11 | |||
1.25.1 | macOS: 11.00, 12 | Chromium, Firefox, Webkit | Sep 7, 2023 |
Windows: 10, 11 | |||
1.24.1 | macOS: 11.00, 12 | Chromium, Firefox, Webkit | Jul 29, 2023 |
Windows: 10, 11 | |||
1.22.2 | macOS: 11.00, 12 | Chromium, Firefox, Webkit | Jun 6, 2023 |
Windows: 10, 11 | |||
1.20.2 | macOS: 11.00, 12 | Chromium, Firefox, Webkit | Apr 16, 2023 |
Windows: 10, 11 | |||
1.18.1 | macOS: 11.00 | Chromium, Firefox | Feb 2, 2023 |
Windows: 10 | Chromium, Firefox, Webkit | ||
1.17.1 | Windows: 10 | Chromium, Firefox, Webkit | Nov 29, 2022 |
Browser support for each framework is based on the Sauce Labs docker images provided in the saucectl
installation. Each Docker image tag is the latest image that supports the specific framework version, as detailed in the available release notes.
How to Get Started
- Quickstart: Use our demo repo to quickly set up and run a sample Playwright project and test to see the results.
- Run your own tests: Customize
saucectl
to run your existing tests just by modifying theconfig.yml
file for your project. - Incorporate
saucectl
in your pipeline: Playwright on Sauce supports CI integrations with Circle CI, GitLab, Jenkins, and GitHub Actions.
Limitations
We recommend that you avoid the use of special characters when naming your tests. If your test name contains any special characters, your test may not run or its artifacts may not be visible in our platform.
Based on current playwright test runner implementation, there is no way to run Playwright test runner with Cucumber.