RemoteWebDriver ExecuteScript Method WebDriver
Executes JavaScript in the context of the currently selected frame or window

Namespace: OpenQA.Selenium.Remote
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public Object ExecuteScript(
	string script,
	params Object[] args
)

Parameters

script
Type: OnlineSystem String
The JavaScript code to execute.
args
Type:  OnlineSystem Object 
The arguments to the script.

Return Value

The value returned by the script.

Implements

IJavaScriptExecutor ExecuteScript(String,  Object )
See Also