Best Cloud Testing Platforms for Playwright: Compare and Set Up
Compare the best cloud testing platforms for Playwright, score them with a simple checklist, then set up BrowserStack, Sauce Labs, TestMu AI or Azure with one config.

Last updated: November 6, 2026 · 17 min read
Short answer: the main cloud testing platforms for Playwright are BrowserStack, Sauce Labs, TestMu AI (formerly LambdaTest) and Microsoft's Playwright Workspaces in Azure App Testing. The best one is the platform that runs your real smoke suite fastest, on the browsers and devices your users actually have, with failures you can debug quickly. If you only need desktop Chromium, Firefox and WebKit, running Playwright in your own CI with sharding may be all you need. Jump to the shortlist and scorecard.
Playwright in the cloud gives you many browser/OS/device combinations without maintaining your own grid. This guide covers how each major cloud connects to Playwright, how to keep one config for local and cloud runs, how to test private staging builds, and how to debug cloud failures. Vendor prices are left out on purpose; check each vendor directly. Pair it with our Playwright Complete Guide, BrowserStack vs LambdaTest comparison, and GitHub Actions CI guide.
Why Run Playwright in the Cloud?
- Coverage — 100+ browser/OS combos vs. 3–5 on your own grid
- Speed — parallel execution across many machines
- Reliability — no maintenance burden
- Scale — burst from 10 to 1000 parallel sessions for releases
- Mobile testing — real iOS and Android devices
For the underlying setup, see our Playwright Complete Guide and Playwright framework setup with TypeScript.
Cloud Providers Compared
All of these run your existing Playwright tests from your own repository. You change how the browser is launched, not the tests themselves.
BrowserStack
- Strengths: wide real device and browser coverage, separate products for live, automated, app and visual testing
- Playwright support: documented, with an SDK and a remote connect option
- Often a fit for: teams that also need manual checks on real phones
Sauce Labs
- Strengths: browsers, emulators, simulators and real devices; plans organised by parallel tests with unlimited users
- Playwright support: documented, including its own runner tool
- Often a fit for: larger automation teams sharing one plan
TestMu AI (formerly LambdaTest)
- Strengths: browser and device cloud plus a test orchestration product for faster CI runs
- Playwright support: documented remote connect
- Often a fit for: parallel-heavy CI workflows
Playwright Workspaces (Azure App Testing)
- Strengths: runs Playwright browsers on Azure-managed machines while your tests stay in your own CI
- Name change: this replaced Microsoft Playwright Testing, which Microsoft retired on March 8, 2026 (Microsoft notice). Older tutorials still use the old name
- Often a fit for: teams already on Azure who only need desktop browsers
Deeper comparisons: BrowserStack vs Sauce Labs, BrowserStack vs LambdaTest and BrowserStack alternatives.
BrowserStack Playwright Setup
Step 1 — Get credentials
Sign up at browserstack.com and grab your userName and accessKey from Settings → Access Keys.
Step 2 — Set environment variables
export BROWSERSTACK_USERNAME="your_username"
export BROWSERSTACK_ACCESS_KEY="your_access_key"Step 3 — Update Playwright config
// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
projects: [
{
name: 'browserstack-chrome',
use: {
...devices['Desktop Chrome'],
connectOptions: {
wsEndpoint: `wss://cdp.browserstack.com/playwright?caps=${encodeURIComponent(JSON.stringify({
browser: 'chrome',
os: 'Windows',
os_version: '11',
browser_version: 'latest',
name: 'Playwright smoke test',
build: 'playwright-build-1',
}))}`,
},
},
},
],
});Step 4 — Run
npx playwright test --project=browserstack-chromeSauce Labs Playwright Setup
// playwright.config.ts
export default defineConfig({
projects: [
{
name: 'sauce-chrome',
use: {
...devices['Desktop Chrome'],
connectOptions: {
wsEndpoint: `wss://ondemand.us-west-1.saucelabs.com:443/playwright?caps=${encodeURIComponent(JSON.stringify({
browserName: 'chrome',
platformName: 'Windows 11',
browserVersion: 'latest',
'sauce:options': { name: 'Playwright test', build: 'playwright-build-1' },
}))}`,
},
},
},
],
});LambdaTest Playwright Setup
export default defineConfig({
projects: [
{
name: 'lambdatest-chrome',
use: {
...devices['Desktop Chrome'],
connectOptions: {
wsEndpoint: `wss://cdp.lambdatest.com/playwright?capabilities=${encodeURIComponent(JSON.stringify({
browserName: 'chrome',
platform: 'Windows 11',
'LT:Options': { build: 'Playwright build', name: 'Playwright test' },
}))}`,
},
},
},
],
});AWS Device Farm with Playwright
AWS Device Farm is built mainly around Appium and mobile app testing, and its desktop browser grid targets Selenium. It is not a natural home for a Playwright suite. If you are an AWS-only shop, a common pattern is to run Playwright in containers on your own CI runners (for example on AWS build machines) and use Device Farm only for native mobile app tests.
One Config for Local and Cloud Runs
Keep cloud details out of your tests. Read the connect address from an environment variable so the same suite runs locally when it is empty and on any cloud when it is set:
// playwright.config.ts
import { defineConfig, devices } from "@playwright/test";
const cloud = process.env.CLOUD_WS_ENDPOINT;
export default defineConfig({
retries: process.env.CI ? 1 : 0,
use: {
baseURL: process.env.BASE_URL,
trace: "on-first-retry",
...(cloud ? { connectOptions: { wsEndpoint: cloud } } : {}),
},
projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }],
});Build the vendor-specific address (with its capabilities) in a small helper or CI step, and store credentials only as CI secrets. Switching vendors then means changing one variable.
Testing Private Staging Builds
Cloud browsers cannot reach localhost or a staging site behind your firewall on their own. Each vendor provides a tunnel: BrowserStack Local, Sauce Connect, and the TestMu AI tunnel. Start the tunnel in CI before the tests, give it a unique name per build, and stop it afterwards. If tests pass locally but every cloud run times out on the first goto, the tunnel is the first thing to check.
Debugging Cloud Failures
- Turn on traces with
trace: "on-first-retry"so a failed test leaves a trace without slowing every run. - Upload
test-results/and the HTML report as CI artefacts. - Open the trace with
npx playwright show-trace trace.zipto see every action, network call and DOM snapshot. - Use the vendor's session video and logs to spot device-specific issues.
- Rerun the single failing test locally against the same
BASE_URLbefore blaming the cloud.
Most cloud-only failures come from timing and test data, not the vendor. Practise these patterns with our Playwright interview questions, and ask how other teams handle them in the QA Community.
How to Choose a Cloud for Playwright
| Your situation | Start with |
|---|---|
| Desktop browsers only, fast PR feedback | Playwright in your own CI with sharding |
| Need real iPhones and Android phones too | BrowserStack, Sauce Labs or TestMu AI |
| Many people sharing one plan | Sauce Labs |
| Already on Azure, desktop only | Playwright Workspaces in Azure App Testing |
Trial your shortlist for a week with your real smoke suite and compare run time, queue time and how quickly you can find a failure's cause.
Best Cloud Testing Platforms for Playwright: Shortlist and Scorecard
There is no single winner for every team. A platform that suits a 3-person startup testing a desktop dashboard can be the wrong choice for a bank that must test on real iPhones. This section gives you a shortlist, the criteria that actually matter for Playwright, a worked scorecard and a one-week trial plan, so you can pick with evidence instead of marketing pages.
How this shortlist was made: from each vendor's official Playwright documentation, checked on November 6, 2026. We have not run a paid benchmark across these platforms, so there are no speed rankings here. In line with our editorial policy, prices are left out; check each vendor's own pricing page.
The shortlist at a glance
| Platform | What it gives Playwright users | Usually a good fit for | Check before you commit |
|---|---|---|---|
| BrowserStack | Desktop browsers and real mobile devices, an SDK plus a remote connect option, a local tunnel | Teams that also want manual checks on real phones | Which Playwright versions are supported today; how parallel sessions are counted |
| Sauce Labs | Browsers, emulators, simulators and real devices, its own runner tool, Sauce Connect tunnel | Larger automation teams sharing one account | Whether you use their runner or a remote connect; how results map back to your CI |
| TestMu AI (formerly LambdaTest) | Browser and device cloud, remote connect, a tunnel and a test orchestration product | Parallel-heavy CI pipelines | Docs still use the LambdaTest name in places; confirm capability names for your version |
| Playwright Workspaces (Azure App Testing) | Cloud-hosted Playwright browsers for highly parallel runs from your own CI | Azure teams testing desktop browsers | No real mobile devices; access is managed through Azure |
| Self-hosted (your CI + sharding + the official Docker image) | Chromium, Firefox and WebKit on machines you control | Desktop-only suites, tight budgets, strict data rules | WebKit on Linux is not the same as Safari on a Mac or iPhone; you maintain the machines |
For a deeper look at two of these, read our BrowserStack review and Sauce Labs review.
Eight criteria that matter for Playwright
- Playwright version support. Remote connections are version-sensitive. The Playwright docs say the major and minor version of the connecting client must match the browser server (1.2.3 works with 1.2.x). If a platform lags behind new releases, every upgrade in your repo can break your cloud runs.
- Browser and device coverage you actually need. Start from your own analytics, not the vendor's device count. If 40% of your users are on iPhone Safari, real iOS devices matter. If your app is an internal desktop tool, they probably don't.
- How you connect. Some platforms offer an SDK or their own runner; all of the shortlisted vendors also document a remote
connectOptionsroute. A plain remote connect keeps your suite portable between vendors. - Private network access. Can the cloud reach your staging site? Check the tunnel tool, how it runs in CI and whether your security team will approve it.
- Parallel sessions and queue time. A plan with few parallel sessions turns a 4-minute suite into a 20-minute one. Measure the time tests spend waiting for a browser, not just the run time.
- Debugging artefacts. You need Playwright traces, video and console logs for a failed test within a minute or two. Check whether traces are kept in your CI or only in the vendor's dashboard.
- CI fit. Look for documented setup for the CI you use (GitHub Actions, GitLab CI, Jenkins, Azure Pipelines) and a clear way to mark build status.
- Data and compliance. Where are screenshots and videos stored, and for how long? Regulated teams often decide on this point alone.
Worked example: scoring three options
This is an illustrative example, not a benchmark. Imagine a 6-person QA team testing an e-commerce site. Their analytics show 55% mobile traffic, mostly Android Chrome and iPhone Safari. The suite has 180 Playwright tests and runs on GitHub Actions. They weight each criterion from 1 (nice to have) to 3 (must have), then score each option from 1 to 5 after a one-week trial.
| Criterion | Weight | Vendor A (real-device cloud) | Vendor B (real-device cloud) | Self-hosted CI |
|---|---|---|---|---|
| Version support | 3 | 4 | 3 | 5 |
| Real iOS and Android devices | 3 | 5 | 4 | 1 |
| Tunnel to staging | 2 | 4 | 4 | 5 |
| Queue time at 10 parallel | 2 | 3 | 4 | 4 |
| Debugging artefacts | 2 | 4 | 3 | 4 |
| CI fit | 1 | 4 | 4 | 5 |
| Weighted total | 53 | 48 | 47 |
How the total is worked out for Vendor A: (3×4) + (3×5) + (2×4) + (2×3) + (2×4) + (1×4) = 12 + 15 + 8 + 6 + 8 + 4 = 53. Self-hosted wins on control and version support but loses heavily on real devices, which this team weighted as a must-have. A desktop-only team would weight that row at 1, and self-hosted would come out on top. That is the point of the exercise: your weights decide the winner, not the vendor's feature list.
A one-week trial plan
- Day 1 – pick a fair suite. Tag 20–30 stable tests as
@smoke. Don't trial with flaky tests, or you will be measuring your own flakiness. If strict-mode or locator errors show up, fix them first with our strict mode violation guide. - Day 1 – record your baseline. Run the smoke suite locally or in your current CI and write down the total time and failure count.
- Days 2–4 – run each candidate the same way. Use the portable config from the section above, so only the
CLOUD_WS_ENDPOINTvalue changes between vendors. - Day 5 – break something on purpose. Change one expected text so a test fails, then time how long it takes a teammate to find the cause from the trace, video and logs.
- Day 5 – score and decide. Fill in the scorecard with the numbers you recorded and share it with your team.
These commands help keep the trial consistent. They use standard Playwright CLI options; adjust the project name to match your config. We have not run them against each vendor.
# 1. Confirm the exact Playwright version the cloud must support
npx playwright --version
# 2. Run only the smoke tests, three times each, to expose flaky results
npx playwright test --grep @smoke --project=cloud-chrome --repeat-each=3
# 3. Save a machine-readable result to compare run times later
npx playwright test --grep @smoke --project=cloud-chrome --reporter=json > results-vendor-a.jsonMistakes teams make when choosing
- Choosing by device count. A large device list doesn't help if your users are on five devices. Check that those five are covered.
- Trialling with a demo project. Vendor sample tests always pass. Your own suite, logins and staging network are where problems appear.
- Locking tests to one vendor. Putting vendor capabilities inside test files makes switching expensive later. Keep them in
playwright.config.tsor environment variables. - Ignoring the upgrade path. Ask how quickly new Playwright releases are supported, then check the vendor's changelog to see if that's true.
- Moving everything to the cloud. Many teams run fast desktop checks on every pull request in their own CI and send only nightly or release runs to a real-device cloud.
Practice exercise
Task: A team tests an internal HR portal used only on company Windows laptops with Chrome and Edge. Their staging site is on a private network and their security team refuses third-party tunnels. Which option should they start with, and why?
Answer: Self-hosted Playwright in their own CI. They need no real mobile devices, Chromium-based browsers cover Chrome and Edge, and keeping browsers inside their own network avoids the tunnel the security team rejected. Sharding gives them parallel runs without a vendor.
If you're building these skills for a job, a cloud run in your CI is a strong addition to a portfolio project; see our Playwright portfolio project ideas. Want to compare notes with others who have trialled these platforms? Ask in the QA Community.
CI/CD Integration
GitHub Actions with BrowserStack
- name: Run Playwright on BrowserStack
run: npx playwright test
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}GitHub Actions with Sauce Labs
- name: Run Playwright on Sauce Labs
run: npx playwright test
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}For full CI patterns, see our GitHub Actions Selenium CI guide.
Best Practices
Do
- Use parallel execution aggressively (50+ parallel sessions for CI)
- Cache dependencies to reduce cloud minutes
- Use retries only for known-flaky tests
- Store credentials in secrets, never in code
- Capture video + traces for debugging
Don't
- Don't run the full suite on every PR (use a smoke subset)
- Don't use cloud for local development (use local browsers)
- Don't ignore cloud provider rate limits
- Don't commit test artifacts (videos, traces) to git
Common Mistakes When Running Playwright in the Cloud
Mistake 1 — Not caching dependencies
Cloud runners download node_modules on every run. Cache them with actions/cache or cache: 'npm' in setup-node.
Mistake 2 — Running everything on every commit
Smoke on every PR. Full E2E nightly. E2E pre-release.
Mistake 3 — Not handling timeouts
// playwright.config.ts
use: {
actionTimeout: 15000,
navigationTimeout: 30000,
}Mistake 4 — Sharing state across parallel sessions
Each test should have isolated state. Don't share databases or browser profiles.
Mistake 5 — Ignoring rate limits
Use retries with exponential backoff.
Mistake 6 — Not monitoring costs
Cloud testing can be expensive. Track usage and set budget alerts.
Cost Optimization Tips
- Use parallel execution aggressively — 100 tests in 10 parallel sessions = 1/10 the runtime.
- Shard tests across machines for >50 parallel sessions.
- Use Docker for self-hosting when you exceed 500 tests/day.
- Cache browser binaries between runs.
- Run smoke tests only in CI — full E2E nightly.
- Track per-test cost with annotations and prune expensive tests.
How to Migrate from Local to Cloud Playwright Testing
- Audit your local tests — find local-only dependencies and hardcoded URLs.
- Externalize configuration — replace
page.goto('https://staging.example.com')withpage.goto(process.env.BASE_URL). - Add secrets management via GitHub Actions secrets.
- Run smoke tests first — verify in the cloud before scaling.
- Migrate the full suite incrementally — Week 1 smoke, Week 2 critical paths, Week 3 full regression.
- Add parallel execution — 10x speedup is common.
- Set up monitoring — execution time, failure rate, cost per test, uptime.
- Optimize continuously — Trace Viewer, dependency caching, parallel workers.
- Set up alerts — failure rate > 5%, slow runs, downtime.
- Document the setup — local vs cloud runs, debugging, costs.
