WebDriverExecuteAsyncScript Method |
Execute an asynchronous piece of JavaScript in the context of the current frame or window.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
SyntaxDim instance As WebDriver
Dim script As String
Dim arguments As Object
Dim timeout As Integer
Dim returnValue As Object
returnValue = instance.ExecuteAsyncScript(script,
arguments, timeout)
Parameters
- script
- Type: SystemString
Piece of JavaScript code to execute. - arguments (Optional)
- Type: SystemObject
Optional arguments for the script. - timeout (Optional)
- Type: SystemInt32
Optional timeout in milliseconds.
Return Value
Type:
ObjectThe first argument of the callback function.
Examplestxt = driver.ExecuteAsyncScript();"
See Also