AI Action is a step type you add to your test — like Click or Fill, but powered by AI. Looking to auto-generate an entire test from scenario notes? See AI Action Agent instead.
What is AI Action?
AI Action is a step type that understands natural language and performs complex browser interactions. You write a prompt describing what you want, and the AI executes it directly in the browser — no selectors needed. AI Action lives alongside your other steps. It’s perfect for interactions that are too complex or dynamic for traditional Click/Fill steps.
How AI Action Works
Unlike traditional automation that relies on CSS selectors or XPath to find elements, AI Action uses vision-based understanding to interact with your application exactly like a human would.AI Action vs Traditional Steps
| Aspect | Traditional Steps | AI Action |
|---|---|---|
| Element Finding | CSS selectors, XPath | Visual understanding of UI |
| When UI Changes | Breaks if selectors change | Adapts automatically |
| Dynamic Content | Requires complex logic | Handles naturally |
| Multi-step Flows | Many individual steps | Single prompt |
| Human-like Decisions | Not possible | Reads, interprets, decides |
What Makes It Different
- Sees the page: Understands visual layout, not just DOM structure
- Context-aware: Knows what “the login button” means even without exact selectors
- Self-correcting: Adapts when elements move or change styling
- Intelligent waits: Understands loading states and UI transitions
When AI Action Shines
Perfect Scenarios
Dynamic, Complex Interactions:- Forms that change based on previous inputs
- Search features with autocomplete and suggestions
- Admin dashboards with conditional logic
- Multi-step wizards where each step depends on the previous
- Choosing options from a list based on visible data
- Reading and interpreting text, numbers, or visual information
- Finding elements that may have moved or changed
- Recovering gracefully from unexpected page states
- “Complete the checkout process with test payment information”
- “Find the user with email ‘test@example.com’ and update their role to Admin”
- “Navigate through settings and enable two-factor authentication”

When to Use Traditional Steps Instead
Stick with basic steps for:- Simple button clicks → use Click
- Straightforward form filling → use Fill
- Navigation to known URLs → use Navigate
- Performance-critical repetitive actions
- API testing for backend functionality
Getting Started
Adding an AI Action Step
- Click the Add button in the test editor
- Select AI Action from the step menu
- Write your prompt describing what you want to accomplish
- Run the step and watch the AI perform the action

Watching It Work
- Live Preview: See exactly what the AI is doing in real-time
- Execution Logs: Understand the AI’s decision-making process
- Timing: Most tasks complete in under a minute (3-minute maximum)
Tips for Success
- Start Simple: Begin with basic interactions and build complexity
- Learn from Logs: Review execution logs to understand what worked and what didn’t
- Break It Down: For very complex tasks, use multiple AI Action steps
Writing Effective Prompts
The key to reliable AI Action is clear, specific prompts. When something doesn’t work, use the PRECISE framework to diagnose and improve.The PRECISE Framework
Think of these as diagnostic levers — not every prompt needs all seven, but knowing which to adjust makes troubleshooting easier.| Lever | When to Adjust | Example |
|---|---|---|
| Position | Agent clicks wrong element | ”click create button in the test plans page” |
| Route | Wrong interaction type | ”right click the folder to open context menu” |
| Effect | Doesn’t wait for UI change | ”click submit to open the modal” |
| Constraints | Does too much or repeats | ”scroll down ONCE only, not more than that” |
| Interval | Fails on loading states | ”wait for spinner to disappear, takes 3-5 sec” |
| Specifics | Enters wrong data | ”enter ‘John Doe’ in the name field” |
| End State | Moves on without confirming | ”verify the entry appears in the table” |
Quick Examples
Instead of: “Click login” Try: “Click the login button in the header to open the login modal” Instead of: “Fill form” Try: “Fill the registration form with email ‘test@example.com’ and password ‘Test123!’, then click submit to show the success message” Instead of: “Scroll down” Try: “Scroll down the page ONCE only, not more than that”Using Dynamic Values
You can use expressions in your prompts to make them dynamic and reusable:- Random Data:
"Register with email {{random.email()}} and password {{random.string({length: 8})}}" - Environment Variables:
"Navigate to {{env.BASE_URL}}/dashboard" - Previous Step Data:
"Update phone number to {{steps.userPhone}}"
Complete Examples
E-commerce Flow
Admin Task
Form with Dynamic Fields
Full CRUD Flow
Working with Other Steps
AI Action combines well with other step types:| Scenario | Recommended Approach |
|---|---|
| Before AI Action | Use Navigate to reach the right page |
| After AI Action | Use Verify Value to confirm success |
| Between AI Actions | Use Wait for Element for timing control |
| Capture Data | Use Extract Value to save information |
Troubleshooting
Using Execution Logs
AI Action provides detailed logs to help you understand what the AI did and debug issues. In the Editor (Real-time Logs): When running tests in the editor, you can see real-time execution logs as the AI performs actions.

Task Not Completing
- Be More Specific: Add details about exactly what you’re trying to accomplish
- Simplify: Break complex tasks into smaller, focused steps
- Check Context: Make sure you’re describing the current page state accurately
Unexpected Behavior
- Review Logs: The execution logs show exactly what the AI did and why
- Refine Description: Make your instructions clearer or more specific
- Add Constraints: Use phrases like “ONCE only” or “don’t click submit”
Performance Issues
- Simplify Tasks: Complex operations might need multiple steps
- Add Waits: Use Wait for Element steps between AI Actions if needed
- Monitor Timeouts: Very complex tasks may need the full 3-minute execution time
Related Resources
AI Action Agent
Auto-generate entire tests from scenario notes
Prompting 101
Master the PRECISE framework for better prompts

