AsyncJavaScriptExecutor ExecuteScript Method WebDriver
Executes a JavaScript script asynchronously.

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

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

Parameters

script
Type: OnlineSystem String
The script to execute.
args
Type:  OnlineSystem Object 
An array of objects used as arguments in the script.

Return Value

The object which is the return value of the script.
Exceptions

See Also