RemoteWebDriverExecuteScriptCommand Method WebDriver
Executes JavaScript in the context of the currently selected frame or window using a specific command.

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

protected Object ExecuteScriptCommand(
	string script,
	string commandName,
	params Object[] args
)

Parameters

script
Type: SystemString
The JavaScript code to execute.
commandName
Type: SystemString
The name of the command to execute.
args
Type: SystemObject
The arguments to the script.

Return Value

Type: Object
The value returned by the script.
See Also

Reference