bool ExecuteScriptOnPage(Guid? browserId, string script)

Executes a block of JavaScript on the current page.


Name Description
browserId The id of the desired browser. Null uses the current active browser.
script The JavaScript block to execute.


True, if the script is successfully sent to the browser, otherwise false. True does not mean that the script successfully ran, only that it was send to the browser.