Beta. Selenium and Playwright on Minitap browsers are being tried with a few teams first. Ask the Minitap team to turn them on for your workspace.
Set up
Open Settings → Test frameworks and pick Selenium or Playwright. The setup walks you through three things:- An API key. Your tests sign in with a workspace API key. Keep it in your CI’s secret store as
MINITAP_API_KEY. - The app ID. The app the results belong to. Copy it from the setup; it isn’t a secret.
- The hub URL. Shown in the setup. Selenium opens its sessions at
https://<hub>/wd/hub, Playwright connects towss://<hub>/playwright.
Selenium
PointRemoteWebDriver at the hub and add the Minitap capabilities:
minitap:setStatus before you quit the driver, as for Appium. A suite that keeps one driver for a whole class can call it once per test: each call is a test. If you’d rather not add it, upload your JUnit report with the CLI instead.
Mobile emulation stays in your test: Chrome’s
mobileEmulation works as it does locally.
Playwright
Your tests connect to a Playwright server Minitap runs next to the browser. Add the Minitap reporter, then give each project its connection withminitapConnect:
- The hub.
MINITAP_HUB_URLtakes the hub’s host overwss://, or the Selenium URL ending in/wd/hub. - One run per CI run. In CI, the run name is the CI’s run, so the shards of one pipeline form one run.
MINITAP_RUN_NAMEsets another. - Browser options.
minitapConnect('chrome', { browserVersion: 'latest-1', viewport: '1440x900', queueTimeout: 600 })picks the version, the window size and how long a test waits for a free browser. - Playwright version. Your
@playwright/testmust be one of 1.60, 1.61, 1.62, 1.63, 1.64 or 1.65: the client and the server have to be on the same minor version. Another version is refused with a message listing the ones we run. - Firefox 157 and 158 with Playwright 1.65. Playwright 1.65 can’t drive these two Firefox versions, and the session is refused with a message saying so. Use Firefox 159, or Playwright 1.64 or older.
- One row per test. The reporter sends each test with its retries, error, stack and duration, and uploads its trace and video. Without it, a run shows one row per worker. You can send the JSON or JUnit report afterwards with
minitest script-runs reportinstead (see the CLI). - Emulation.
devices[...]anduse.viewportwork as they do locally.
Browsers
Ask for
latest, latest-1 or latest-2, or a major by number. A version we don’t run refuses the session with a message listing the ones we do. Safari and WebKit aren’t available yet.
A run never mixes browsers. Its first test sets the browser, version and window size, and every later test of the run gets the same one. A later test asking for another one is refused: give it its own minitap:runName to run it apart.
How many tests run at once
A test’s browser counts against your workspace’s browser limit, the same one Mini’s web runs use. Start more tests than that and the first ones run while the others wait, first come first served. A test that waits longer than itsminitap:queueTimeout is refused with a message naming the browser, how many tests asked for one and how many your workspace has.
A browser starts in a few seconds, and up to about a minute and a half when we add capacity.
Private and staging apps
When your app sits behind a VPN, a firewall or an IP allowlist, use the app’s private network. Every browser your tests get reaches the app’s private domains through your connector, as Mini’s runs do. If the connector is offline, the test is refused with a private network error rather than reaching the app another way. Minitap’s browsers don’t have a fixed IP address you can allowlist, so the connector is the way in. Playwright’sexposeNetwork: '<loopback>' also lets the browser reach an app served on your CI’s own localhost.
Read the results
Open Results → Script runs. Each test shows its browser, like Chrome 157 · 1280×800, its status and failure reason. Open it to watch its recording (a Playwright test plays its own video, or its worker’s recording from where the test started), read the driver log (Selenium), the browser console and a failure’s stack, and open its Playwright trace in the trace viewer. A retried test shows its last attempt and how many retries it took. From the terminal:Good to know
- A session lasts at most two hours.
- While we deploy a new version of the hub, sessions open at that moment can end. Playwright’s retries, or your CI’s, start them again.
