Watching the AI Explore
Every test script TestFlair generates starts with its AI working through the test case in a real browser against your application. With the live view, you can watch that browser while it happens, next to a log of every action the AI takes.
What you're watching
- You generate a script
- Cloud browser opens the test case URL
- AIAI performs a step and checks the resultRepeats for every step of the test case
- CheckpointStep passed: on to the next step. Wrong turn: back to the last checkpoint.
- Recording of verified steps
- OutcomeScript written from the recording
What the stream shows is the exploration described in How a script is made: the AI carries out each step of the test case, checks the expected result, and records what worked. The script is then written from that recording.
Opening the live view
- Generate a script from the Test Cases tab. See Test Scripts.
- On the Test Scripts tab, a generating card shows a maximize icon with a red recording dot. A tip points it out the first time.
- Click the icon (or the card) to open the generation details.
| Area | What it shows |
|---|---|
| Agent Thinking | What the AI plans to do next, in plain words |
| Stream tab | The live browser, next to the Action Log (each action with a tick if it worked or a cross if it didn't) and the Generation Logs |
| Logs tab | The full generation log |
| Code tab | The code, once it has been written |
The live view is for watching only; you can't click into the browser to help the AI.
When generation ends, the browser closes and the Stream tab shows Browser session has ended. The Action Log, logs and code stay available from Generation details in the card's menu.
Stopping
If you can see the AI heading the wrong way (for example, the test case's URL or test data is wrong), click Stop in the generation details or in the card's menu. Flairs already used are not refunded. Fix the test case, then Regenerate.
Testing local apps
The browser runs in TestFlair's cloud, so your app has to be reachable from the internet. For an app on localhost or inside a VPN, set up a tunnel first. See Testing local applications.
How this differs from running a script
| Generating (this page) | Running a script | |
|---|---|---|
| Who drives the browser | TestFlair's AI, step by step | Your generated Selenium or Playwright code |
| What you see | The live browser, Action Log, Agent Thinking | Live logs, then a video of the run |
| Costs | Flairs, as part of script generation | Nothing |
Next Steps
- Test Scripts — How scripts are generated and edited
- Test Execution — Run the finished script