Documentation

Everything you need to get started

Quick start

1. Create a project

Add your staging URL. It has to be reachable from the internet. No SDK, no code changes needed.

2. Create a flow

A flow is a saved test: steps Regresco repeats in a real browser. Describe one in plain text, let AI Generate suggest several, Import Playwright tests, build one by hand with Add flow, or connect an AI agent.

3. Run it

Run all flows runs the whole project, and the Play button on a flow runs just that one. Flows run in a real Chromium browser against your staging environment.

4. Read the result

The run page shows failed flows first, with the failed step, its screenshot and what to try. See Reading a run.

Step types

Each flow is a list of steps that run in order. In the flow editor, a step's Type is one of these:

  • navigate: open a URL. Field: URL. The step shows the HTTP status it got. A 4xx or 5xx response doesn't fail it, so follow it with an assert if the page itself matters.
  • click: click an element. Field: Selector. If a normal click doesn't work, Regresco tries again and labels the step Clicked with force or Clicked by script. Something may be covering the element. A hidden element isn't clicked: the step fails.
  • fill: type text. Fields: Selector, Text to type.
  • select: choose an option in a list. Fields: Selector, Option. The option is its value, or its visible label when no value matches, in a native select. A disabled or hidden option fails the step. For a custom dropdown, use a click step on it and another on the option.
  • hover: move the pointer over an element. Field: Selector. For a menu or a tooltip that opens that way. A flow on a phone can't have one: a phone has no pointer, and a tap opens such a menu.
  • upload: attach a file. Fields: Selector, File, File contents. The selector points at the file input or at the button that opens the file picker. The input can be hidden behind that button, but not inside something closed, such as a form that hasn't opened. Leave the contents empty to send one of our samples: sample.png, sample.jpg, sample.pdf, sample.txt, sample.csv. To send your own text file, such as a CSV, name it and paste what it holds. We keep no other files, so an image or a PDF of your own can't be sent.
  • press: press a key, such as Enter or Tab. Fields: Selector, Key.
  • assert: check an element is visible. Field: Selector. It checks visibility only, not text. To check text, put it in the selector, such as h1:has-text("Welcome").
  • assertUrl: check the page's address. Field: Address. The path has to match in full, so /login isn't /login-help. * stands for one part of the path, as in /orders/*, and ** for anything below it. A query or a hash only counts if you write it. A path means the site the flow went to, so /login on another site fails, and a full URL checks that host. It waits until the page is at the address and stays there for a moment, up to the step's timeout, so it works after a redirect and doesn't pass on one that bounces away.
  • api: send an HTTP request. Fields: Method, Request URL, Headers (JSON), Body (JSON), Expected status. Use it for setup, login, cleanup or a status check. It shares cookies with the browser and shows the status it got. It passes on any response unless Expected status is set, for example 200 or 2xx.

Every step also has optional Timing: Timeout (ms), from 1000 to 30000, and Wait after (ms), up to 60000. Without its own timeout, a navigate or api step waits up to 30 seconds and the others up to 8 seconds.

URLs are full addresses. In the editor, a path like /login is completed with the project's Staging URL when you leave the field.

When a step fails, the rest of the flow is skipped. A failed assert or assertUrl is the exception: it changes nothing on the page, so the next steps still run.

Fresh test data

A sign-up form that took an address yesterday refuses it today. Write one of these in a step and Regresco fills in a new value for each run:

  • {{email}}: an address such as regresco-k3m9x2qa@example.com. example.com never receives mail, so nobody gets your test's messages.
  • {{random}}: eight letters and digits, starting with a letter, for a username, a name or a code.
  • {{timestamp}}: the time the run was started, in milliseconds since 1970, the same in every flow of the run.

They work in a step's selector, value, URL, headers and body. Within one flow they stay the same: sign up with {{email}}, then check text="{{email}}" on the profile page. Each flow of a run gets its own, so two flows that sign up don't collide.

If your form only takes your company's addresses, write one around a placeholder, such as qa+{{random}}@yourcompany.com. The run page shows the value each step typed, and the step as written when you hover it.

Computer or phone

A flow runs on a computer's screen, 1280x720, unless you set Screen to Phone when you edit it. A phone flow runs at 412x839 with touch and a phone's browser identity, so a site with no mobile version lays out as it does on a phone, and clicks become taps.

It is Chromium made to look like an Android phone, not a real device and not Safari. It finds what breaks at a phone's size, and it can't find what only breaks on an iPhone. A phone flow can't have hover steps.

Testing authenticated flows

Many critical flows (dashboard, settings, checkout) need a logged-in user. Regresco has no separate login setting: a flow signs in with its own steps, either through your login form or through an API step. Use a dedicated test user in your staging environment, so tests don't interfere with real data.

Through your login form

Use fill and click steps, as a person would. A project with no flows yet offers My app needs a login, which opens a new flow with these steps. Check the selectors and add your test account.

Step 1  navigate  https://staging.myapp.com/login
Step 2  fill      input[type="email"]     test@example.com
Step 3  fill      input[type="password"]  your test password
Step 4  click     button[type="submit"]
Step 5  assert    h1

Through an API step

Put an api step first and log in through your app's API. Cookies are shared with the browser, so the following steps run as the logged-in user. Set Expected status, otherwise the step passes even when the login is refused.

Step 1  api       POST https://staging.myapp.com/api/auth/login
                  Headers (JSON):  {"Content-Type": "application/json"}
                  Body (JSON):     {"email": "test@example.com", "password": "testpass123"}
                  Expected status: 200

Step 2  navigate  https://staging.myapp.com/dashboard
Step 3  assert    h1:has-text("Welcome")
Step 4  click     a:has-text("Settings")
Step 5  assert    form.settings-form

The API step makes a real HTTP request from Regresco's worker, with the cookies of the flow's browser. The session cookie from the login response is used by all following browser steps: no manual cookie handling needed. This only works for sessions kept in cookies. If your app keeps its token in browser storage, log in through the form.

Values typed into a step are stored with the flow, so never use a real account. Values of fields named like password or token are hidden in step lists, but traces record typed values in full.

Accessing your staging environment

Regresco runs tests from the cloud against a URL you provide. There is no SDK and nothing to install in your app. The URL has to be reachable from the internet: staging and preview URLs work, localhost and internal addresses don't.

If your staging is locked down, here is what works today:

  • A login page: add login steps to the flow. See Testing authenticated flows.
  • Cloudflare or a similar check: see Sites behind Cloudflare or bot protection.
  • HTTP Basic auth: Regresco has no setting for it. Use an address without the prompt, or let the access cookie described below through on your side.
  • VPN-only: a cloud runner can't join your VPN. Use a public staging or preview URL.
  • A firewall that trusts known addresses: Regresco has no fixed outgoing address.

Not sure? Tell us how your staging is protected at hi@regresco.com and we will say what works before you commit.

Sites behind Cloudflare or bot protection

Regresco's browser runs from a cloud address, so Cloudflare or a CAPTCHA can stop it before your page appears. Trying again doesn't help. Flow generation and runs are both affected, and a run stopped this way is reported as Blocked by bot protection.

There are two ways out: point the project at a staging URL without the check, or allow Regresco with a Cloudflare custom rule that matches a secret cookie.

Allow Regresco with a Cloudflare rule

  1. Open the project and choose Edit project, the pencil in the top bar. In the Bot protection section, choose Create access cookie.
  2. Regresco now sends the cookie regresco_access with your token, on runs and when it reads your site to write flows. The browser sends it only to the project's own host, never to third parties on the page or to other sites your pages redirect to.
  3. In Cloudflare, add a custom rule with the action Skip and an expression like this one. Edit project shows it with your host and token filled in.
    (http.host eq "staging.myapp.com" and http.cookie contains "regresco_access=YOUR_TOKEN")
  4. Choose what the rule skips. A Skip rule can skip custom rules, Managed Rules, rate limiting, Super Bot Fight Mode (paid plans), Security Level and Browser Integrity Check.

What a rule can't do

  • The free Bot Fight Mode can't be skipped by any rule. Turn it off on staging, or use an address without it.
  • A CAPTCHA on a real page isn't bypassed. Use a staging URL without it.

Replace token gives you a new value, and your rule stops matching until you update it. Stop sending removes the cookie. Changing the project's staging URL to another site removes it too, so the new site never receives it: create a new one for that site if you need it. The cookie isn't tied to Cloudflare: any proxy or server of yours that can read a request's cookies can use it.

Import Playwright tests

If you already have a Playwright test file, paste its contents into Import on the project page. Each test(...) block becomes a flow. The text stays in your browser until you import.

Actions the parser recognizes

  • page.goto(url) → navigate
  • page.click(selector), or click() on a locator → click
  • page.fill(selector, value), or fill(value) on a locator → fill
  • page.selectOption(selector, option), or selectOption(option) on a locator, with a value, or with { value } or { label } → select
  • page.hover(selector), or hover() on a locator → hover
  • page.press(selector, key), or press(key) on a locator → press. page.keyboard.press(key) right after a fill goes to that field.
  • expect(locator).toBeVisible() → assert. toHaveText and toContainText with a text or a regular expression → assert that the element has that text.
  • expect(page).toHaveURL(address), page.waitForURL(address), with an address as text → assertUrl
  • request.get/post/put/patch/delete(url, options) → api step, with headers and body. expect(res.status()).toBe(200) on the next line becomes its Expected status.

Locators

locator, getByRole, getByText, getByLabel, getByPlaceholder, getByAltText, getByTitle and getByTestId find what they find in Playwright: part of the text in any case, or the whole of it with exact: true. Chains stay chains, including first(), last(), nth(n) and filter({ hasText }). A locator kept in a variable works by its name, and the steps inside test.step come in like any others.

What doesn't carry over

  • Lines that can't become a step, such as helper functions and fixtures, are counted and listed under their test. So are dblclick(), check() and a right click, which flows have no step for, and page.keyboard.press anywhere but right after a fill. setInputFiles is another: a file on your disk means nothing here, so add an upload step by hand.
  • Checks a flow can't make are listed too, so the flow checks less than the test: .not in front of any check, toHaveValue, toHaveCount, toBeFocused, toHaveTitle, an address given as a regular expression.
  • State checks like toBeChecked and toBeEnabled come in as a visibility check, and the test says so.
  • A fresh value becomes its placeholder: faker.internet.email() becomes {{email}}, Date.now() becomes {{timestamp}}, and faker.string.uuid(), crypto.randomUUID() and the like become {{random}}, inside a template string too, and through a variable that holds one.
  • A step holding any other variable like ${name} stores it as plain text, and the test warns you to replace it. A URL starting with /, or with a variable like ${BASE_URL}, is resolved against the project's Staging URL.
  • beforeEach, beforeAll, afterEach and afterAll hooks and fixtures aren't imported. A test that opens no page of its own, because one of them did, starts at the project's Staging URL. Add any other steps they hold to the flow by hand.
  • A loop, a condition or a try block is listed whole, because its steps wouldn't always run.
  • A test marked test.skip, test.fixme or test.fail isn't imported, and the page says which ones.

Example: paste, get structured flows

example.spec.ts
import { test, expect } from '@playwright/test';

test('Login flow', async ({ page }) => {
  await seedTestUser(page);
  await page.goto('https://app.example.com/login');
  await page.fill("input[name='email']",
    'test@example.com');
  await page.fill("input[name='password']", 'pw');
  await page.click("button[type='submit']");
  await expect(page.locator('h1')).toBeVisible();
});

test('API health check', async ({ request }) => {
  const res = await request.get(
    'https://api.example.com/health');
  expect(res.status()).toBe(200);
});
2 flows found · 2 selected
Login flow5 steps

1 line skipped, so this flow checks less than the test.

1navigatehttps://app.example.com/login
2fillinput[name='email']
3fillinput[name='password']
4clickbutton[type='submit']
5asserth1
API health check1 step
1apiGET https://api.example.com/health

AI features

  • AI Generate: reads your staging site and suggests up to 5 flows, using selectors it found on the page. Describing your app is optional. Select the flows you want with the checkboxes, then choose Save N flows or Save N flows and run. Suggestions whose selectors aren't on the page are left out.
  • Describe a flow: type what to test in the field on the project page, for example "Log in and check that the dashboard opens". Regresco reads your site and shows a preview of the steps. Nothing is saved until you choose Save or Save and run, and Discard drops it.
  • Explain failure: on a failed step, asks AI for a possible cause and a next action. It works from the step, the error, the browser's console errors from that step and similar elements found on the page. It can't see the page itself, so the answer is marked AI suggestion, not verified.

AI Generate and Describe a flow read public pages only, so flows behind a login need login steps. With Read my site first turned off, AI Generate writes from your description alone, and its selectors are guesses.

Each account has a daily allowance of AI requests: 50 on Free, 200 on Pro and 500 on Business, reset at midnight UTC. Describing a flow or explaining a failure is one request, and AI Generate is one or two. Runs don't use them.

Example: AI Generate output

3 suggested flows
Sign up new account5 steps
1navigatehttps://app.example.com/signup
2fillinput[name='email']
3fillinput[name='password']
4clickbutton[type='submit']
5asserth1:has-text("Welcome")
Browse pricing page3 steps
1navigatehttps://app.example.com/pricing
2assert[data-testid='pro-plan']
3clicka:has-text("Start free")
Footer links resolve3 steps
1navigatehttps://app.example.com/
2assertfooter a[href='/docs']
3assertfooter a[href='/contact']
Save 3 flowsSave 3 flows and run

Scheduled runs

Set up automatic regression runs on a schedule:

  • Daily: runs every day at your chosen time
  • Weekly: runs on a specific day and time

Configure in the project page under Schedule. Times are in your local timezone.

Each scheduled run uses one of your plan's runs. When they're used up, scheduled runs are skipped and Regresco emails you about it, at most once a week. A scheduled run that comes due while 5 of your runs are queued or running starts as soon as one of them finishes.

CI/CD integration

Trigger runs from your deployment pipeline using your CI/CD key:

curl -X POST https://regresco.com/api/webhook/trigger \
     -H "x-api-key: YOUR_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{"projectName": "My App"}'

Use the project's name, or {"projectId": "..."} if two projects share a name. The answer has a statusUrl you can poll with the same key. With 5 of your runs already queued or running, the answer is a 429 with the code TOO_MANY_ACTIVE_RUNS: try again when one has finished.

Create your key in Settings → CI/CD. That page also shows each project's ID and has examples for GitHub Actions, GitLab CI, a bash script and a package.json script.

Working with an AI coding agent? Connect an MCP client such as Claude Code or ChatGPT to create flows, start runs and read failures from the agent: see the MCP integration guide.

Reading a run

A run page shows the run's number, its status and how many steps passed. Failed flows come first and stay open. Flows that passed are folded into one line, which you can open.

  • A failed step shows What happened, its screenshot and What to try.
  • Edit step opens the step's selector or URL right there. Save and run again saves it and starts a new run of that flow.
  • Edit flow opens the whole flow in the editor, with the failed step open. Changes apply from the next run, and this run stays as it was.
  • Run again on a flow runs only that flow. The button at the top repeats the whole run. While a run is queued or running, Cancel run stops it.
  • Download trace is on each flow. See Artifacts.
  • HTTP status shows on navigate and api steps. A 4xx or 5xx is highlighted, but doesn't fail a step unless the step checks the status.
  • Failed or Error: Failed means a step failed and the run finished. Error means the run could not finish, which says nothing about your flows, so start it again.

Elsewhere in the dashboard, search in the top bar finds projects, flows and runs, the bell lists recently finished runs, and Analytics shows totals, the pass rate, runs per day and failures by type.

Auto-heal

When the selector of a click or fill step doesn't match, Regresco looks at the current page for an element called exactly what your selector asks for, in its text or its name, and retries the step with it. A step looking for "Sign in" won't press "Show password", and one looking for "Delete Invoice 42" won't press "Run Invoice 42" or a plain "Delete". What a button says on screen comes first: an id that says "login" doesn't make a "Log out" button the one you meant. If no element has that name, or more than one does, the step fails and the run page lists what's similar. For a click, the element also has to be something meant to be clicked, such as a link or a button. For a fill, it has to be a field that takes typing, and afterwards the field has to hold everything that was typed, in the order typed. The field may add punctuation and spaces of its own, but no letters or digits: a phone field shows (555) 123-4567 for 5551234567, an amount field $1,234.50 for 1234.50. Capitals don't count, nor do spaces at either end. A field that drops a character you typed or writes it another way (12-25 for 12.25), or that still holds what it held before, isn't a replacement: the step fails, and the suggestion on the run page names the field that was found. If the replacement passes, the step counts as passed and is labelled Auto-healed. It's shown in yellow because it's worth a look: the replacement may not be the element you meant.

An assert step is never replaced. A check that passes on something else would say the page shows what it may not, so it fails, and the run page suggests what you could check instead. Selectors that ask for more than one thing, such as a button inside a certain card or a button that's disabled, aren't replaced either. A step written for a role and a name, such as role=button[name="Save"], is only replaced by the one element on the page that the browser gives that role and name.

You see it in four places:

  • Projects list & Runs list: N auto-healed next to the run's result.
  • Flow card on the project page: N auto-healed next to the step count.
  • Run page: the healed step has an Auto-healed label and a visible line naming both selectors, with a Use this selector button that saves the replacement into the flow.
  • Flow editor: the same note under the Selector field. Here Use this selector puts the replacement in the field, and saving the flow makes it permanent.

Auto-heal doesn't change your flow by itself: until you use the selector, the next run has to find the replacement again. Every healed step is a signal that the page changed or the selector was wrong. If the step after it fails, the run says it may be caused by the auto-healed step. When the same step has needed a new selector in more than one run in a row, the run page says in how many, and the third run in a row also gets a notification.

Example: healed selector in the flow editor

Edit flow · Checkout flow
3click#place-order-btnAuto-healed

#place-order-btn did not match in the last run. It passed with button:has-text("Place order"). Check this is the right element.

Use this selector
4assert[data-testid="order-confirmed"]
5asserth1:has-text("Thank you")

Failure classification

Every failed step gets a label. In the API and over MCP the values stay BROKEN_LOCATOR, REGRESSION and FLAKY.

  • Broken selector: the selector didn't match one visible element, this step has never passed with it, and none of the page's own requests failed around it.
  • Likely regression: the step passed before with the same selector and no replacement was found, so the page probably changed. The same goes for a flow's first run when the page's own request failed during the step or the one before it: a 5xx, or a rejected POST, PUT, PATCH or DELETE. Errors that aren't about a selector, such as an api step getting the wrong status, land here too.
  • Flaky: it alternates: failed, passed again, failed. A run of failures at the end isn't flaky, it's a step that stopped working. Errors that look temporary, such as a navigation timeout, a network error or a crashed page, are labelled Flaky as well.
  • Blocked by bot protection: Cloudflare or a CAPTCHA stopped the browser, which says nothing about the flow (UNKNOWN in the API and over MCP). See Sites behind Cloudflare or bot protection.

Only results of the same step count, so editing a selector starts its history over. N flaky on a flow card counts the steps that both passed and failed since the flow last changed.

Transient failures are retried once before a step is marked as failed. A selector that doesn't match isn't retried: a click or a fill goes straight to auto-heal, and an assert fails. When a failing element is found and its selector is plain CSS, it's outlined in red in the screenshot.

Example: a failed step on the run page

Run #58 · Checkout flow
4clickbutton.submit-order
Broken selector

What happened

Element "button.submit-order" wasn't found on the page.

What to try

Check the screenshot. If the page looks right, the selector changed. If not, the app may have a bug.

Edit stepExplain failure

Baseline comparison

Each flow in a finished run is compared with that flow's last finished run. A flow with no earlier run says First run of this flow, and the others link to their Previous run.

  • New failure: a step that fails now and didn't fail in the previous run
  • Still failing: a step that failed in the previous run and fails again
  • Now passing: a step that failed in the previous run and passes now

Example: a run compared with the previous one

Run #58 · Checkout flow

Compared with the previous run: 1 new failure · 1 still failing · 1 now passing

2click.btn-submitNew failure
3asserth1:has-text("Dashboard")Now passing
4assert[data-testid="order-confirmed"]Still failing

Artifacts

A finished run keeps:

  • Screenshots: of every step that passed, except assert, assertUrl and api, and of every failed step except api. A screenshot shows the visible area only (1280x720, or 412x839 on a phone flow), not the whole page. Fields named like password or token that the flow typed into are covered.
  • Playwright traces: Download trace on each flow. Open the file at trace.playwright.dev or run npx playwright show-trace trace.zip. A trace records typed values and request headers in full. API steps aren't in it: their result is on the step.
  • Console messages: browser errors and warnings, on the failed step and at the end of each flow.
  • Run history: on each flow card, the last runs as colored squares with the success rate.

Files a page offers for download aren't kept: downloads are off during a run.

Jira integration

A failed step can create a Jira issue automatically, so your QA team doesn't file tickets by hand.

Setup

  1. On a project page, open the Jira button in the topbar.
  2. Enter your Jira URL (https://yourcompany.atlassian.net), email, and an API token generated at id.atlassian.com/manage-profile/security/api-tokens.
  3. Enter the project key (short uppercase identifier like QA) and issue type (defaults to Bug; team-managed projects often only have Task).
  4. Click Test connection to verify. It should say "Connected as {name}".
  5. Turn on Enable Jira integration and save.

What lands in Jira

When a run ends as Failed, each failed step becomes an issue, unless the step was already failing in its previous result. The issue has:

  • Title: [Project] Flow: step N (action) failed
  • Bullet list with project, flow, step, classification
  • Error message as a code block
  • Link to the screenshot and a direct link back to the run in Regresco

The API token is stored encrypted (AES-256-GCM). Disable the integration at any time without losing the saved credentials.

Example: what an auto-created issue looks like

Jira · SCRUM-142Open in Jira
Bug

[Acme SaaS] Checkout flow: step 4 (assert) failed

• Project: Acme SaaS

• Flow: Checkout flow

• Step 4: assert [data-testid="order-confirmed"]

• Classification: BROKEN_LOCATOR

Error

Element "[data-testid="order-confirmed"]" wasn't found on the page.
Fix: check the screenshot. If the page looks right, the selector changed. If not, the app may have a bug.
ScreenshotOpen run in Regresco

Email notifications

Get notified when runs complete. Emails include status, passed/failed count, and a link to the run dashboard.

Toggle on/off in Settings → Profile → Notifications.

Reliability features

  • Auto cookie banner dismissal: automatically closes common consent popups after the first page load
  • Scroll into view: elements below the fold are scrolled into view before interaction
  • Adaptive timeouts: steps other than navigate and api, without their own timeout, wait three times as long as the first page load took, between 5 and 8 seconds
  • Retry on failure: transient failures are retried once before a step is marked as failed
  • Parallel execution: up to 3 flows run concurrently per test run
  • Click fallback: when a normal click doesn't work, Regresco clicks with force, then by script, and labels the step Clicked with force or Clicked by script. A hidden element isn't clicked: the step fails.
  • Flow time limit: a flow that hangs stops after 120 seconds. The step it hung on fails and the rest are skipped
  • Run time limit: a run stops after 10 minutes. The results saved by then stay, and it counts as one run on your plan
  • Data limit: a run can move 2 GB through its browser, or 100 MB per flow if that's more, up to 8 GB. Past that its pages stop loading, and the step that needed one says why
  • Console limit: a flow stops if its pages write more than 64 MB to the browser console. Uncaught errors and dialogs count too

Plans

Free plan: 20 runs per month, 1 project. Pro plan ($99/month): 200 runs, 20 projects. Business plan ($299/month): 1000 runs, 100 projects, priority queue. All features are available on every plan. Upgrade any time from Settings → Profile.

On every plan a flow can have 200 steps with 250,000 characters of text between them, a project 200 flows, and an account 5 runs queued or running at once.

Run counts reset every 30 days, and Settings → Profile shows the date. Changing plans doesn't reset them. At the limit, new runs are refused and scheduled runs are skipped. You get an email about skipped runs at most once a week. Nothing is deleted.

Need help?

Reach out at hi@regresco.com or use our contact form.