Overview

The BROWSER_BACK step navigates the browser back one page in the history, simulating the browser’s back button. This is useful for testing navigation flows and state persistence.

Parameters

This step requires no parameters.

Behavior

  1. History Check: Verifies browser history is available
  2. Navigation: Navigates back one page in browser history
  3. Page Load: Waits for the previous page to load completely
  4. State Restoration: Browser restores previous page state

Common Use Cases

  • Testing form abandonment and data persistence
  • Verifying navigation flow between pages
  • Testing browser back button functionality
  • Returning to search results after viewing details
  • Testing state preservation across navigation

Error Handling

The step will fail if:
  • There is no browser history to navigate back to
  • The navigation fails or times out
  • The previous page cannot be loaded
The browser must have navigated to at least one page before this step can be used.