Overview
Browser automation blocks use headless browsers (Chromium, Firefox, WebKit) to interact with JavaScript-heavy websites, handle dynamic content, and perform actions like clicking and typing.BrowserOpen
Launch a browser instance.Settings
Run browser in headless mode (no visible window)
Browser engine to use:
chromium, firefox, webkitProxy URL in format:
http://host:port or socks5://host:portAdditional browser launch arguments (space-separated)
Example
NavigateTo
Navigate to a URL in the browser.Settings
URL to navigate to (supports variable interpolation)
Navigation completion event:
load- Wait for load eventdomcontentloaded- Wait for DOMContentLoadednetworkidle- Wait for network idle
Navigation timeout in milliseconds
Cookies to set before navigation (one per line:
name=value)Example
ClickElement
Click an element on the page.Settings
CSS selector for element to click
Wait for navigation after clicking (e.g., form submission)
Timeout for element to appear
Example
TypeText
Type text into an input field.Settings
CSS selector for input element
Text to type (supports variable interpolation)
Clear existing text before typing
Delay between keystrokes in milliseconds (simulates human typing)
Example
WaitForElement
Wait for an element to appear/disappear.Settings
CSS selector for element
Element state to wait for:
visible- Element is visiblehidden- Element is hiddenattached- Element exists in DOMdetached- Element removed from DOM
Maximum wait time in milliseconds
Example
GetElementText
Extract text or attribute from an element.Settings
CSS selector for element
Attribute to extract (leave empty for text content)Examples:
value, href, data-id, classVariable name to store result
Capture as user-visible variable
Example
Screenshot
Capture a screenshot of the page or element.Settings
Capture entire scrollable page (not just viewport)
CSS selector to capture specific element (empty = full page)
Variable name to store base64-encoded PNG
Example
ExecuteJs
Execute JavaScript code in the browser context.Settings
JavaScript code to executeThe return value is stored in
output_varVariable name to store return value
Capture as user-visible variable
Example
Complete Browser Example
Best Practices
- Close browsers when done to free resources
- Use networkidle for JavaScript-heavy pages
- Add WaitForElement before interacting with dynamic content
- Set appropriate timeouts for slow-loading pages
- Use headless mode in production for performance
- Limit browser blocks - they’re slower than HTTP requests