 | WebDriverExtensionsJavaScripts Method |
Framework to automate tests using Selenium WebDriverEasy use for java scripts.
Namespace: Ocaramba.ExtensionsAssembly: OcarambaLite (in OcarambaLite.dll) Version: 4.2.6+43a78d4b91293779f9bddc600324863f323e0ac6
Syntaxpublic static IJavaScriptExecutor JavaScripts(
this IWebDriver webDriver
)
Request Example
Parameters
- webDriver IWebDriver
- The webDriver to act on.
Return Value
IJavaScriptExecutorAn IJavaScriptExecutor Handle.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IWebDriver. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
ExampleSample use of java scripts:
this.Driver.JavaScripts().ExecuteScript("return document.getElementById("demo").innerHTML");
See Also