Manual Steps
Browser Code Execution
Execute JavaScript code directly in the browser
Overview
Browser Code Execution allows you to run custom JavaScript code directly in the browser context. This is useful for advanced interactions, custom validations, or accessing browser APIs that aren’t covered by standard steps.
Usage
Provide the JavaScript code you want to execute in the browser:
Common Use Cases
Getting Element Properties
Browser API Access
Custom Calculations
Return Values
The step returns the result of the JavaScript execution:
- Success: Returns the actual result of the code execution
- Error: Returns syntax or runtime error details
Best Practices
- Keep it Simple: Use for cases where standard steps aren’t sufficient
- Handle Errors: Consider that elements might not exist
- Return Values: Ensure your code returns meaningful data
- Test First: Verify your JavaScript works in the browser console
Related Topics
- AI Extraction - For extracting data with natural language
- AI Validation - For validating conditions with AI