Steps

Steps are the building blocks of test cases. Each step is a natural language instruction that the AI executes.

Step Structure

A step consists of:

FieldRequiredDescription
DescriptionYesWhat to do (e.g., "Click the login button")
DataNoInput value for the step
Wait UntilNoCondition to verify before next step
Bypass CacheNoForce AI execution (skip cache)

Writing Effective Steps

Be Specific

❌ "Click button"
✅ "Click the 'Add to Cart' button"

Describe the Target Element

❌ "Enter text"
✅ "Enter email in the login form email field"

Include Context When Needed

❌ "Click submit"
✅ "Click the 'Submit Order' button in the checkout form"

Step Examples

Click Actions

Click the "Sign In" button in the header
Click on the first product in the list
Click the checkbox to accept terms

Input Actions

Enter the email address in the email field
Type "Hello World" in the message textarea
Enter the search query in the search box

Navigation

Navigate to the Settings page
Click the "Account" link in the sidebar
Go back to the previous page

Waiting

Wait for the loading spinner to disappear
Wait until the success message is visible
Wait for the page to finish loading

Data Field

The data field provides input values for steps that require them:

Step: Enter the email address in the email field
Data: test@example.com

Dynamic Data

Use placeholders for dynamic values:

See Dynamic Placeholders for all options.

Wait Until Field

waitUntil makes the AI wait for a condition after executing the step:

Step: Click the "Submit" button
Wait Until: Success message is displayed

The AI polls for the condition with a 30-second timeout. Use for actions that trigger navigation or async operations.

When to Use Wait Until

Bypass Cache

Bug0 caches successful step executions for faster reruns. Enable "Bypass Cache" to:

Step Order

Steps execute sequentially from top to bottom. Reorder by:

  1. Dragging steps in the editor
  2. Steps automatically renumber

Adding Steps

From the Editor

  1. Click Add Step below the last step
  2. Enter the step description
  3. Optionally add data and wait condition

From AI Generation

  1. Use "Generate from Video" or "Generate from Text"
  2. AI creates multiple steps automatically
  3. Review and edit as needed

Editing Steps

Click on any step field to edit:

Changes auto-save after a short delay.

Deleting Steps

  1. Hover over the step
  2. Click the trash icon
  3. Step is removed immediately

Best Practices