Skip to main content

Playwright on Sauce Labs

Playwright is a testing framework that you can use to test your web apps remotely on Sauce Labs Cloud using the saucectl CLI.

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

Supported OS:

  • Windows 10 / Windows 11
  • macOS 10.15+
  • Linux

Supported Testing Platforms

Sauce Labs supports the following test configurations for Playwright:

Playwright VersionSupported PlatformsSupported BrowsersEnd of Life
1.37.1macOS: 11.00, 12, 13Chromium, Chrome, Firefox, WebkitAugust 31, 2024
Windows: 10, 11
1.36.2macOS: 11.00, 12, 13Chromium, Chrome, Firefox, WebkitAugust 1, 2024
Windows: 10, 11
1.35.1macOS: 11.00, 12, 13Chromium, Chrome, Firefox, WebkitJune 16, 2024
Windows: 10, 11
1.33.0macOS: 11.00, 12, 13Chromium, Chrome, Firefox, WebkitMay 11, 2024
Windows: 10, 11
1.31.1macOS: 11.00, 12, 13Chromium, Chrome, Firefox, WebkitMar 01, 2024
Windows: 10, 11
1.29.2macOS: 11.00, 12, 13Chromium, Chrome, Firefox, WebkitJan 15, 2024
Windows: 10, 11
1.28.1macOS: 11.00, 12, 13Chromium, Chrome, Firefox, WebkitNov 30, 2023
Windows: 10, 11
1.27.1macOS: 11.00, 12, 13Chromium, Firefox, WebkitOct 20, 2023
Windows: 10, 11
1.25.1macOS: 11.00, 12, 13Chromium, Firefox, WebkitSep 7, 2023
Windows: 10, 11

How to Get Started

Playwright Reporter for Sauce Labs

If you prefer to stay in Playwright, try the Playwright Sauce Labs Reporter. Connect to your Sauce Labs account from within your Playwright project to configure and run your tests directly from Playwright.

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.

Playwright 1.31.1 + Webkit + Sauce-Connect

When using Sauce-Connect, Webkit browser is unable to load any website that is hosted on the Internet. Local websites can still be loaded.

macOS 11 + Playwright 1.29+ + Webkit

Webkit is not working on macOS 11 since Playwright 1.29.0

Playwright + Cucumber

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