You get standard Playwright TypeScript you can read, diff, and run under your own config. One test definition executes on Selenium or Playwright, exports to a real .spec.ts with no TestInspector dependency, and repairs its own selectors on retry. Keep your CI. Skip the maintenance treadmill.
Every command maps to a line you would have written yourself. Read the table on the left, read the spec on the right, and confirm the mapping row by row.
| # | Command | Target | Value |
|---|---|---|---|
| 1 | open | https://app.acme.com/login | |
| 2 | assign | {{QA_USER}} | |
| 3 | assign | #password | {{QA_PASSWORD}} |
| 4 | click | button[type='submit'] | |
| 5 | assertElementVisible | [data-testid='dashboard-root'] | |
| 6 | assertText | h1.greeting | Welcome back |
| 7 | extract | .account-id | ->accountId |
| 8 | requestGET | /api/v1/accounts/{{accountId}} | status_equals 200 |
import { test, expect } from '@playwright/test';
test('Login / Smoke', async ({ page }) => {
await page.goto('https://app.acme.com/login');
await page.locator('#email').fill(process.env.QA_USER);
await page.locator('#password').fill(process.env.QA_PASSWORD);
await page.locator("button[type='submit']").click();
await expect(page.locator("[data-testid='dashboard-root']")).toBeVisible();
await expect(page.locator('h1.greeting')).toHaveText('Welcome back');
const accountId = await page.locator('.account-id').textContent() ?? '';
const res = await page.request.get(`/api/v1/accounts/${accountId}`);
expect(res.status()).toBe(200);
});{{QA_USER}} resolves to process.env.QA_USERextract becomes a real const a later step can readBecause tests are stored as structured steps rather than engine-specific code, the same definition runs on Selenium WebDriver or Playwright. Pick the engine from a dropdown per run, or set a per-suite default.
The Playwright engine waits for elements and assertions to settle before acting, which removes most timing flakes without explicit sleeps.
Each Playwright run records video, so a failure two weeks ago is still something you can watch rather than reconstruct.
Trace files capture DOM snapshots per step, so you debug the exact action that broke instead of guessing from a stack trace.
36 commands cover clicks, form input, navigation, assertions, and HTTP requests in a single flow. Read a value off the rendered page, then assert the backend agrees, without leaving the test.
extract captures rendered text; a later requestGET uses it in the URL.// One test. A UI step feeds an API assertion.
const orderId = await page.locator('[data-order-id]').textContent() ?? '';
const res = await page.request.get(`/api/v1/orders/${orderId}`);
expect(res.status()).toBe(200);
expect((await res.json()).status).toBe('confirmed');A hand-rolled suite wins where arbitrary code matters. TestInspector wins on maintenance and engine flexibility. Here is the split, without the marketing.
| Concern | Hand-rolled Playwright | TestInspector |
|---|---|---|
| Who maintains broken selectors | You, per failing spec | Self-healing on retry, change reported |
| Where tests live | Files in your repo | Structured steps + client-side export to your repo |
| Engine flexibility | Playwright only | Selenium or Playwright, chosen per run |
| Video + trace on every run | Yes | Yes |
| Auto-wait on actions | Yes | On the Playwright engine |
| UI and API assertions in one test | Hand-wired | Yes |
| Author tests from plain English | No | Grounded against the live DOM |
| Full arbitrary code / custom fixtures | Yes | eval / extractEval escape hatches only |
| Export and walk away, no dependency | Already yours | Real .spec.ts, runs with no TI runtime |
If your suite depends on arbitrary fixtures and custom code paths, a hand-rolled suite is the right tool. TestInspector covers the flows that are mostly clicks, assertions, and HTTP checks, and hands you the Playwright file when you want it.
Export happens client-side. The generated files carry no TestInspector runtime, so leaving is a download, not a migration.
Runs under @playwright/test with no TI dependency.
Import straight into Selenium IDE 2.0.
Old XHTML format for existing pipelines.
Legacy Builder JSON export.
The structured step definition itself.
Run from your own CI and read results back.
# Trigger a run from your own pipeline over the API.
curl -X POST https://api.testinspector.ai/api/v1/suites/tests/run/ \
-H "Authorization: Bearer $TI_TOKEN" \
-d '{ "suite": "checkout", "test": "login-smoke", "engine": "playwright" }'Author a flow, run it on either engine, and export a real .spec.ts the moment you want to own the code. No dependency follows it out the door.