Executes a script in a web page.
Namespace: Selenium.Internal.SeleniumEmulationAssembly: 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:
System String
The script to run.
- args
- Type:
System Object
An array of values containing additional arguments to the function.
Return Value
The result of the scriptSee Also