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.

파일 보기 프로젝트 열기: asynchrony/Selenium2

공개 메소드들

메소드 설명
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