JavaScriptLibrary ExecuteScript Method WebDriver
Executes a script in a web page.

Namespace: Selenium.Internal.SeleniumEmulation
Assembly: Selenium.WebDriverBackedSelenium (in Selenium.WebDriverBackedSelenium.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

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

Parameters

driver
Type: OpenQA.Selenium IWebDriver
The IWebDriver object used to call the script.
script
Type: OnlineSystem String
The script to run.
args
Type:  OnlineSystem Object 
An array of values containing additional arguments to the function.

Return Value

The result of the script
See Also