evaluate_javascript
Execute JavaScript in the active Safari page on a real iPhone and receive the result as a string, enabling custom DOM queries, data extraction, and page interaction during automated testing.
Instructions
Run JavaScript in the page and return the result as a string.
Wrap in return ... to get a value back, e.g. return document.title;
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |