Skip to main content
The Run Custom Code command (Command Type: 10) executes arbitrary JavaScript code directly in the browser’s page context. The return value of the script becomes the command result.

Command Type

Command Type ID: 10

Parameters

Usage Examples

Extract Data from Page

Scroll to Bottom of Page

Trigger Custom Logic

Common Use Cases

  • Custom Extraction: Extract deeply nested or dynamically computed data from window
  • DOM Manipulation: Trigger interactions that require custom JS
  • Scraping Utilities: Run helper scripts for pagination, scrolling, or data normalization