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

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

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

Parameters

script
Type: SystemString
The JavaScript code to execute.
args
Type: SystemObject
The arguments to the script.

Return Value

Type: Object
The value returned by the script.

Implements

IJavaScriptExecutorExecuteScript(String, Object)
See Also

Reference