Свойство | Тип | Описание | |
---|---|---|---|
CheckIsInitialized | void | ||
Initialize | void | ||
Validate | void |
Метод | Описание | |
---|---|---|
ExecuteAsyncScript ( string script ) : object |
Executes JavaScript asynchronously in the context of the current Page.
|
|
ExecuteScript ( string script ) : object |
Executes JavaScript in the context of the current Page. The M:OpenQA.Selenium.IJavaScriptExecutor.ExecuteScript(System.String,System.Object[]) method executes JavaScript in the context of the current Page. This means that "document" will refer to the current document. If the script has a return value, then the following steps will be taken:. Arguments must be a number (which will be converted to a T:System.Int64 ), a T:System.Boolean , a T:System.String or a T:OpenQA.Selenium.IWebElement . An exception will be thrown if the arguments do not meet these criteria. The arguments will be made available to the JavaScript via the "arguments" magic variable, as if the function were called via "Function.apply". . |
|
FindElement ( |
Finds the first T:OpenQA.Selenium.IWebElement using the given method.
|
|
FindElements ( |
Finds all
|
Метод | Описание | |
---|---|---|
CheckIsInitialized ( ) : void | ||
Initialize ( IWebDriver driver, IJavaScriptExecutor jsExecutor ) : void |
Initializes the page.
|
|
Validate ( ) : void |
public ExecuteAsyncScript ( string script ) : object | ||
script | string | The JavaScript code to execute. |
Результат | object |
public ExecuteScript ( string script ) : object | ||
script | string | The JavaScript code to execute. |
Результат | object |
public FindElement ( |
||
@by | ||
Результат | IWebElement |
public FindElements ( |
||
@by | ||
Результат | ReadOnlyCollection |