browser_execute_script
Execute JavaScript code directly in the current web page to manipulate DOM elements, extract data, or automate browser interactions during web testing.
Instructions
Execute JavaScript in the context of the current page
Input Schema
Name | Required | Description | Default |
---|---|---|---|
script | Yes | JavaScript code to execute |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"script": {
"description": "JavaScript code to execute",
"type": "string"
}
},
"required": [
"script"
],
"type": "object"
}