bool ExecuteScriptInBrowser(Guid browserId, bool includeAllFrames, string script)

Executes a block of JavaScript in the designated browser control.

Parameters

Name Description
browserId The id of the browser.
includeAllFrames True to run the script in all frames; false for just the top (outermost) frame.
script The block of JavaScript to execute.

Return

True, if the script was successfully executed.