QAbyAI logo
Tools

Browser

Tools for managing browser state, tabs, and advanced browser features

Browser tools give you control over browser-level functionality, managing tabs, storage, and executing custom code within your tests.

JavaScript

Execute custom JavaScript code directly in the browser context.

Configuration:

  • code (required): JavaScript code to execute in browser
  • timeout (optional): Maximum execution time

Learn more about JavaScript step capabilities.

New Tab

Open new browser tabs with specific URLs.

Configuration:

  • url (required): URL to open in new browser tab

Switch Tab

Switch between open browser tabs.

Configuration:

  • matcher (required): Tab title/url substring or regex, or tab number

Set browser cookies for authentication or state management.

Configuration:

  • cookie (required): Cookie string in Set-Cookie header format

Local Storage

Manage browser local storage for maintaining application state.

Configuration:

  • key (required): Local storage key name
  • value (required): Local storage value to set

Load Browser State

Restore previously saved browser state including cookies, storage, and session data.

Configuration:

  • state (required): Browser state identifier to load

Enable Request Intercept

Enable specific request interception rules at this point during test execution. This allows you to dynamically mock API responses during your test.

Configuration:

  • ruleIds (required): Array of request intercept rule IDs to enable

Request intercept rules are managed globally in Settings > Request Intercepts. This step activates selected rules, which will then intercept matching requests and return the configured mock responses.

Disable Request Intercept

Disable specific request interception rules that were previously enabled. This allows you to restore normal network behavior for specific endpoints during your test.

Configuration:

  • ruleIds (required): Array of request intercept rule IDs to disable

Use this step to turn off mocking for specific APIs when you need to test against real backend responses.

Copy

Copy text to the system clipboard.

Configuration:

  • text (required): Text to copy to clipboard

Paste

Paste content from the system clipboard.

Configuration:

  • No additional configuration required

When to Use Browser Tools

JavaScript:

  • Complex data manipulation
  • Integrating with your app's APIs
  • Custom validations that need precise control

Tab Management:

  • Multi-tab workflows
  • Testing cross-tab functionality
  • Simulating real user browsing patterns

Storage & Cookies:

  • Setting up test scenarios with specific user states
  • Testing authentication flows
  • Bypassing login for faster test setup

File Operations:

  • Testing file upload functionality
  • Document processing workflows
  • Image or media upload scenarios

Request Interception:

  • Mocking API responses for specific test scenarios
  • Testing error handling by returning error status codes
  • Simulating slow or unavailable backend services
  • Isolating frontend tests from backend dependencies

Browser tools complement QAbyAI's AI-powered interactions by giving you precise control when you need it, while letting AI handle the routine interactions.