Browserflow
  • 👋🏽 Welcome to Browserflow
  • Guides
    • Building a flow
    • Running a flow
    • Debugging a flow
    • Sharing a flow
    • Automating Google websites
    • Keyboard shortcuts
    • Selectors
    • Variables
    • Input variables
    • Conditions
  • Browserflow Cloud
    • Running flows in the cloud
    • Loop Sheet flows
    • Saving files
    • Automating sites behind a login
    • API
    • Webhooks
    • Zapier
    • Troubleshooting
  • Reference
    • Browserflow commands
      • Interact with Page
        • Click
        • Type Text
        • Press Key
        • Scroll
        • Hover
        • Select Option
        • Set Date Input
        • Upload File
        • Handle Dialog
      • Extract Data
        • Get Element Text
        • Get Link URL
        • Get Page URL
        • Get Element Attribute
        • Get Element HTML
        • Get Clipboard
        • Save File
        • Take Screenshot
        • Generate PDF
      • Navigate
        • Visit
        • Go Back
        • Go Forward
        • Reload Page
      • Spreadsheet
        • Loop Spreadsheet Rows
        • Add Spreadsheet Row
        • Update Spreadsheet Row
        • Find Spreadsheet Row
      • Control Flow
        • Loop Elements
        • Loop Pages
        • Loop
        • Loop List Items
        • If
        • Else
        • While
        • End
        • Break
      • Tabs
        • Create Tab
        • Get Active Tab ID
        • Select Tab
        • Close Tab
      • Utilities
        • Run Script
        • Get Date
        • Wait
        • Wait for Element
        • Show Alert
        • Make HTTP Request
        • Assert
        • Run Flow
        • Comment
        • Solve Captcha
  • Support
    • Getting help
    • Common errors
  • Troubleshooting
    • Updating to the latest version
Powered by GitBook
On this page
  • Use cases
  • Video demo

Was this helpful?

  1. Reference
  2. Browserflow commands
  3. Utilities

Assert

PreviousMake HTTP RequestNextRun Flow

Last updated 2 years ago

Was this helpful?

Throws an error if the condition is not met

Conditions

See page

Use cases

Use case: Verify intermediate results during a flow

Asserts can be used to verify that certain steps in a flow completed successfully. For example, if your flow submits a form, you can use Assert to check that some success text (e.g. "Your form was submitted successfully!") appears on the page.

Use case: End-to-end testing

Asserts can be used to test functionality in websites and web apps. For example, if you wanted to create a test to ensure that clicking the "Sign up" button on your home page takes the user to the sign up page, you can use Assert to check the result of after clicking the button.

Video demo

Conditions
Get Page URL