Scenario Step Types

Understand the different types of steps you can include in your test scenarios.

Interaction (Interact Mode)

This is the default mode for recording standard user interactions with the website.

Supported Actions

  • Clicking on buttons, links, and other clickable elements
  • Filling out forms and input fields
  • Scrolling through pages
  • Navigating between pages
  • Any other standard user interaction

How to use: Ensure that Interact mode is selected using the Change mode button, then perform your desired actions on the website.

Interact mode

Assertions (Assert Mode)

Assert steps verify that specific page elements contain expected text content. These are crucial for validating that your website displays the correct information.

How to Record an Assertion

  1. During recording, switch to Assert mode Assert mode
  2. Click on the element whose text content you want to verify
  3. The current text content will be captured and saved

During Replay

When the scenario is replayed, Probium will check if the element's text matches the expected value. If the texts don't match, the step will be marked as failed.

Important: Assertions help ensure your website displays correct information to users. Use them to validate critical content like success messages, user names, prices, and status indicators.

Waiting Mechanisms (Wait for Mode)

This step type waits for a specific element with specific text content to appear on the page before proceeding.

When to Use

Use Wait For steps when:

  • Content loads dynamically via AJAX
  • Waiting for animations to complete
  • Ensuring a success message appears
  • Waiting for data to be processed

How to Record

  1. Switch to Wait for mode Wait for mode
  2. Wait for the desired element to appear on the page
  3. Click on the element
  4. The step will be recorded with the element's selector and text content

How to Change Timeout in a "Wait for" Step

  1. Within your recorded scenario, find the specific Wait for step you wish to modify.
  2. Click on the clock icon located on that step. Wait for step
  3. This will open the Interaction Browser page, where you can see the current values for both the timeout and the polling interval.
  4. Click on the edit icon (pencil) to adjust these values according to your testing needs.
Wait for step in interaction browser

Hover Actions (Hover Mode)

Hover steps simulate moving the mouse cursor over a specific page element without clicking it.

Use Cases

  • Triggering dropdown menus
  • Revealing tooltips
  • Activating hover-based animations
  • Testing hover states in UI components

How to Record

  1. Switch to Hover mode Hover mode
  2. Wait for the target element to appear
  3. Click on the element you want to hover over
  4. During replay, the cursor will hover over this element

Data Extraction (Extract Mode)

Extract steps capture text content from page elements so you can use this data in subsequent steps of your scenario.

Common Use Cases

  • Extracting order IDs or confirmation numbers
  • Capturing user-generated content
  • Reading dynamic values to use in forms
  • Storing reference data for later assertions

How to Record

  1. Switch to Extract mode Extract mode
  2. Click on the element containing the text you want to extract
  3. The extracted value is saved as a parameter
  4. You can reference this parameter in later steps

Tip: Extracted values appear in the Parameters table where you can view and manage them alongside other scenario parameters.

Assertions for Current URL

This step verifies that the URL of the current wepbage matches the given value.

How to Record

  1. Click the Actions button in the toolbar
  2. Select Assert URL from the dropdown menu Assert URL

Email OTP Integration

This step type automates the process of receiving and entering one-time passwords sent via email during authentication flows.

How to Record an Email OTP Step

  1. Click the Actions button in the toolbar
  2. Select OTP from the dropdown menu OTP
  3. In the OTP Wizard, choose Email OTP OTP Wizard Email
  4. Enter the email address where the OTP will be sent

    Important: Probium currently works only with email addresses on the @mailpit.probolabs.ai domain!

    OTP Email
  5. Click Next
  6. Close the OTP Wizard
  7. Click on the input field where the OTP should be entered

During Replay

Probium will automatically:

  • Wait for the email to arrive
  • Extract the OTP code from the email
  • Enter the code into the specified field

TOTP and Authenticator App Support

This step type handles authentication using time-based one-time passwords, similar to authenticator apps like Google Authenticator or Authy.

How to Record a TOTP Step

  1. Click the Actions button
  2. Select OTP from the dropdown OTP
  3. In the OTP Wizard, choose TOTP (Shared secret) OTP Wizard TOTP
  4. Enter the following information:
    • Secret key (the shared secret from your authenticator setup)
    • Code length (typically 6 digits)
    • Generation algorithm (usually SHA-1) TOTP Secret
  5. Click Next
  6. Close the OTP Wizard
  7. Click on the input field where the TOTP code should be entered

During replay, Probium will generate the current TOTP code based on the shared secret and enter it into the specified field automatically.

Ask AI Functionality

The Ask AI step allows you to formulate questions in natural language that the AI will answer based on the current page content.

How to Add an Ask AI Step

  1. Write your question in the "Ask AI" text area and click the "Send message" button Ask AI empty
  2. Wait for an answer
  3. Click the "Add to interactions list" button Ask AI
  4. The "Ask AI" step will be added to the current scenario.
  5. Enabling the assertion switch will convert this step into an assertion. Ask AI step

Example Questions

Yes/No Questions:

  • "Is the user logged in to the website?"

Descriptive Questions:

  • "What color is the submit button?"

Counting Questions:

  • "How many products are displayed on the page?"

Using AI Responses

The value obtained from Ask AI can be:

  • Used as a condition for assertions
  • Referenced in subsequent steps
  • Stored as a parameter for later use

Custom Node.js Scripts

For advanced use cases, you can execute arbitrary Node.js scripts as part of your scenario.

How to Add a Step with Custom Node.js Script

  1. Click the "plus" icon in the required part of scenario Add script
  2. Fill in a script name, a code, and click the "Add & Run" button Add script form
  3. A script step will be added to the scenario. Result of the script can be used in the next steps of scenario. Script step

What You Can Do

  • Perform complex data transformations
  • Make external API calls
  • Generate dynamic test data
  • Implement custom validation logic
  • Integrate with external services

Advanced Feature: Custom scripts give you unlimited flexibility to extend Probium's capabilities for your specific testing needs.

How to Change the Code of the Script

  1. Within your recorded scenario, find the specific Script step you wish to modify.
  2. Click on the icon located on that step. Script step in list
  3. This will open the Interaction Browser page, where you can see the current code being executed for this step.
  4. Click on the edit icon (pencil) to edit this code. Script step in interaction browser