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.

Afficher le fichier Open project: asynchrony/Selenium2

Méthodes publiques

Méthode 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 méthode

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

ExecuteScript() public méthode

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.
Résultat object