Executes JavaScript in the context of the currently selected frame or window
Namespace: OpenQA.Selenium.RemoteAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
Parameters
- script
- Type:
System String
The JavaScript code to execute.
- args
- Type:
System Object
The arguments to the script.
Return Value
The value returned by the script.Implements
IJavaScriptExecutor ExecuteScript(String, Object )See Also