Skip to main content

execute_script

Scripting

Executes a synchronous JavaScript script in the page context.

Parameters

Parameter Type Required Default Description
script string Yes — JavaScript code to execute in page context
output_variable string No Variable to store the return value

Usage Example

RTILA X PROJECT JSON
execute_script.json
{
  "command": "execute_script",
  "params": {
    "script": "return document.title;",
    "output_variable": "page_title"
  }
}

Related Scenarios

Related Learning Articles

Was this helpful?