C# Класс 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.

Показать файл Открыть проект

Открытые методы

Метод Описание
AsyncJavaScriptExecutor ( IJavaScriptExecutor executor ) : System

Initializes a new instance of the AsyncJavaScriptExecutor class.

ExecuteScript ( string script, object args ) : object

Executes a JavaScript script asynchronously.

Описание методов

AsyncJavaScriptExecutor() публичный Метод

Initializes a new instance of the AsyncJavaScriptExecutor class.
public AsyncJavaScriptExecutor ( IJavaScriptExecutor executor ) : System
executor IJavaScriptExecutor An object capable of executing JavaScript.
Результат System

ExecuteScript() публичный Метод

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.
Результат object