public executeScript(script as String) as String:
Executes the embedded DOM scripting profile against the current page.
Supported operations cover title/location assignment, getElementById, textContent, innerHTML, inline style assignment and classList.add/remove/toggle. No native or host process API is exposed.
| Parameter | Description |
|---|---|
script | Script source. |
String value produced by a return statement, or "".
browser.executeScript("document.getElementById('status').textContent = 'Ready';")