C# Class OpenQA.Selenium.Internal.AsyncJavaScriptExecutor

Utility class used to execute "asynchronous" scripts. This class should only be used by browsers that do not natively support asynchronous script execution.

Warning: this class is intended for internal use only. This class will be removed without warning after all native asynchronous implemenations have been completed.

Show file Open project: asynchrony/Selenium2

Public Methods

Method Description
AsyncJavaScriptExecutor ( IJavaScriptExecutor executor ) : System

Initializes a new instance of the AsyncJavaScriptExecutor class.

ExecuteScript ( string script, object args ) : object

Executes a JavaScript script asynchronously.

Method Details

AsyncJavaScriptExecutor() public method

Initializes a new instance of the AsyncJavaScriptExecutor class.
public AsyncJavaScriptExecutor ( IJavaScriptExecutor executor ) : System
executor IJavaScriptExecutor An object capable of executing JavaScript.
return System

ExecuteScript() public method

Executes a JavaScript script asynchronously.
if the object executing the function doesn't support JavaScript. if the page reloads during the JavaScript execution. if the timeout expires during the JavaScript execution.
public ExecuteScript ( string script, object args ) : object
script string The script to execute.
args object An array of objects used as arguments in the script.
return object