/qa-web-e2e:cloud-grid-e2efrom qa-web-e2e
Configures E2E tests to run on real browsers and devices via BrowserStack, Sauce Labs, or LambdaTest. Covers credentials, hub URLs, vendor capabilities, local tunnels, and CI matrix sizing.
Ships in qa-web-e2e. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A cloud grid is a hosted farm of real devices + browsers exposed through a W3C-compliant WebDriver endpoint. Point any WebDriver client (Selenium, WebdriverIO, Nightwatch) at the vendor's hub URL and the suite runs on combinations the local machine cannot host: real Safari on iOS, legacy browser versions, niche Android devices.
The three major vendors are isomorphic - the same suite moves between them by swapping four things:
| Concern | BrowserStack | Sauce Labs | LambdaTest |
|---|---|---|---|
| Auth env vars | BROWSERSTACK_USERNAME + BROWSERSTACK_ACCESS_KEY | SAUCE_USERNAME + SAUCE_ACCESS_KEY | LT_USERNAME + LT_ACCESS_KEY |
| Hub URL | https://hub-cloud.browserstack.com/wd/hub | regional, e.g. https://ondemand.us-west-1.saucelabs.com:443/wd/hub | https://hub.lambdatest.com/wd/hub |
| Vendor options dict | bstack:options | sauce:options | LT:Options |
| Local tunnel | BrowserStackLocal | Sauce Connect Proxy | LambdaTest Tunnel |
Everything else is standard W3C capabilities (browserName,
browserVersion, platformName) per w3.org/TR/webdriver2/.
Vendor deep detail (full options tables, tunnel setup, REST artifact retrieval, CI matrix examples): references/browserstack.md · references/sauce-labs.md · references/lambdatest.md.
Composes with the sibling browser-matrix-strategy-reference for
matrix planning.
For bundled-engine matrix (Chromium / Firefox / WebKit on the runner
machine), use playwright-testing (references/browser-matrix.md). For a
self-hosted grid (data residency, cost control), use the sibling
selenium-grid-4-runner.
Choosing between the vendors: BrowserStack has the broadest real-device matrix and enterprise procurement; Sauce Labs suits Selenium-grid-centric parallel CI farms; LambdaTest is the cost-sensitive smaller-scale option. Full deltas in the per-vendor references.
bstack:options
/ sauce:options / LT:Options) on the Options object before
creating the driver - set at minimum a project/build/session name triple
so the dashboard groups sessions.driver.quit(), so dashboard metrics stay accurate.Run one Selenium suite on the grid end to end - build capabilities, create the remote driver, drive the test, report status, quit. Per browserstack.com/docs/automate/selenium:
import os
from selenium import webdriver
options = webdriver.SafariOptions()
options.browser_version = "17"
bstack_options = {
"os": "OS X",
"osVersion": "Sonoma",
"projectName": "my-app",
"buildName": os.environ.get("BUILD_TAG", "local-run"),
"sessionName": "Checkout flow on Safari macOS",
"local": "false",
}
# Vendor caps must be set on Options BEFORE Remote(); driver.capabilities is a
# read-only result dict, so assigning to it afterwards is a no-op ([Selenium options]).
options.set_capability("bstack:options", bstack_options)
driver = webdriver.Remote(
command_executor=(
f"https://{os.environ['BROWSERSTACK_USERNAME']}:"
f"{os.environ['BROWSERSTACK_ACCESS_KEY']}"
f"@hub-cloud.browserstack.com/wd/hub"
),
options=options,
)
driver.get("https://example.com")
# ... test ...
# mark the session pass / fail so the dashboard metrics are accurate
driver.execute_script(
'browserstack_executor: {"action": "setSessionStatus", '
'"arguments": {"status":"passed","reason":"Login redirected as expected"}}'
)
driver.quit()
Every non-W3C capability - os, osVersion, projectName, buildName,
sessionName, local - lives inside bstack:options; only the standard
fields (browserName, browserVersion, platformName) sit at the top
level (Selenium options). Use "status":"failed","reason":"..." on
failure.
The same shape on the other vendors: Sauce Labs reports status via
driver.execute_script("sauce:job-result=passed") and LambdaTest via
driver.execute_script("lambda-status=passed") - see the references.
Each vendor ships a tunnel binary that lets grid sessions reach hosts on your network. BrowserStack example:
# Download the BrowserStackLocal binary from browserstack.com
./BrowserStackLocal --key "$BROWSERSTACK_ACCESS_KEY" --daemon start
# Sessions with bstack:options.local = "true" now tunnel
./BrowserStackLocal --key "$BROWSERSTACK_ACCESS_KEY" --daemon stop
Sauce Connect (./sc --tunnel-name ... + sauce:options.tunnelName) and
LambdaTest Tunnel (./LT --tunnelName ... + LT:Options.tunnel: true) are
in the references. For ephemeral CI: spawn → wait-for-ready with a bounded
timeout → run tests → terminate.
Run the browser matrix as CI jobs, one combination per job, with the
credentials in secrets and buildName/build set to the PR identifier:
on: pull_request
jobs:
grid:
runs-on: ubuntu-latest
strategy:
matrix:
browser:
- { name: Chrome, version: latest, os: Windows, osVersion: "11" }
- { name: Safari, version: "17", os: "OS X", osVersion: Sonoma }
steps:
- uses: actions/checkout@v5
- name: Run cross-browser tests
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
BUILD_TAG: pr-${{ github.event.pull_request.number }}
run: pytest tests/e2e/ --bstack
All three vendors cap concurrent sessions by plan tier; queue overflow
blocks subsequent sessions until earlier ones complete. Throttle the worker
pool (ThreadPoolExecutor(max_workers=N) or the CI matrix max-parallel
key) to the plan limit, and tier the matrix per
browser-matrix-strategy-reference so full runs stay inside it.
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Credentials in code | Token leak | Env vars / secret store |
| All tests on every browser combo | Slow + expensive (plan-limited) | Tier the matrix - see browser-matrix-strategy-reference |
| Missing build/project name caps | Sessions un-grouped in dashboard | Always set build to the CI run / PR identifier |
| No session-status update | Dashboard pass/fail rate inaccurate | Always report status before quit |
| Tunnel binary not stopped | Stale tunnels accumulate | Always stop the daemon after the run |
| Parallel exceeds plan limit | Sessions queue + timeout | Match worker pool to plan |
| Polling for tunnel-ready without timeout | Suite hangs if the tunnel never connects | Bounded wait + fail |
| Hardcoded vendor URL in tests | Switching grids requires code changes | Env-var-driven hub URL + a small caps abstraction |
| Treating vendors as drop-in interchangeable | Options dicts differ (bstack:options vs sauce:options vs LT:Options) | Isolate vendor caps in one harness module |
set_capability for vendor-prefixed caps before driver creation.browser-matrix-strategy-reference.selenium-grid-4-runner (self-hosted alternative).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub testland/qa --plugin qa-web-e2e9 skills in this plugin
/browser-matrix-strategy-referenceUse when deciding which browsers, OS versions and devices to test: a three-tier matrix built from traffic data, quarterly re-tier reviews, a published support policy and test budget, or the case for dropping an old browser. The Playwright, Selenium Grid and cloud-grid skills run it./cypress-testingUse whenever a project writes, fixes or upgrades Cypress E2E tests: cypress.config.ts, replacing cy.wait sleeps with assertions, cy.intercept network stubs, fixtures and cy.task, cy.clock, cy.origin logins, cy.session commands, the Cypress 16 upgrade, and Cloud parallel runs./playwright-agentsUse when a coding agent works with Playwright through playwright-cli, Playwright MCP or the planner, generator and healer Test Agents: setting them up, reviewing healer diffs before merging, debugging a failing test from its trace in a terminal with no display, and leaving a video receipt./playwright-testingUse whenever the task is to write, fix or speed up Playwright tests, even one quick test or a flaky one: role-based locators, web-first assertions instead of waitForTimeout, page objects, config and browser projects, traces, sharding and CI. Has the anti-pattern table for flaky Playwright tests./selenium-grid-4-runnerUse when cross-browser tests must run on a self-hosted Selenium Grid 4 for data residency or cost: standalone or hub-and-node, the Docker images, node registration, session queue tuning and observability. Managed grids are cloud-grid-e2e; choosing browsers is browser-matrix-strategy-reference./selenium-testingUse when a project is already on Selenium WebDriver and needs tests written, fixed or upgraded in Java, Python, C# or other bindings: Selenium Manager drivers, locators, explicit waits, page objects, BiDi console errors, Grid in Docker, JUnit XML. New projects usually pick Playwright.Other plugins' skills for the same job