Executes JavaScript asynchronously in the context of the currently selected frame or window.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 2.21.0.0 (2.21.0.0)

Syntax

C#
Object ExecuteAsyncScript(
	string script,
	params Object[] args
)
Visual Basic
Function ExecuteAsyncScript ( _
	script As String, _
	ParamArray args As Object() _
) As Object
Visual C++
Object^ ExecuteAsyncScript(
	String^ script, 
	... array<Object^>^ args
)

Parameters

script
Type: System..::..String
The JavaScript code to execute.
args
Type: array<System..::..Object>[]()[][]
The arguments to the script.

Return Value

The value returned by the script.

See Also