Skip to main content

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.

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:

  • OS: 10.14+ (Mojave, Catalina, or Big Sur)
  • Docker: Desktop

Supported Testing Platforms

Sauce Labs supports the following test configurations for Playwright:

Playwright VersionSupported PlatformsSupported BrowsersEnd of Life
1.22.2macOS: 11.00, 12Chromium, Firefox, WebkitJun 6, 2023
Windows: 10, 11
1.20.2macOS: 11.00, 12Chromium, Firefox, WebkitApr 16, 2023
Windows: 10, 11
1.18.1macOS: 11.00Chromium, FirefoxFeb 2, 2023
Windows: 10Chromium, Firefox, Webkit
1.17.1Windows: 10Chromium, Firefox, WebkitNov 29, 2022

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 the config.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

Special Characters in Test Names

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.

note

Based on current playwright test runner implementation, there is no way to run Playwright test runner with Cucumber.