Метод | Описание | |
---|---|---|
Close ( ) : void |
Close the current window, quitting the browser if it is the last window currently open.
|
|
Dispose ( ) : void |
Frees all managed and unmanaged resources used by this instance.
|
|
EventFiringWebDriver ( IWebDriver parentDriver ) : System |
Initializes a new instance of the EventFiringWebDriver class.
|
|
ExecuteAsyncScript ( string script ) : object |
Executes JavaScript asynchronously in the context of the currently selected frame or window.
|
|
ExecuteScript ( string script ) : object |
Executes JavaScript in the context of the currently selected frame or window. The ExecuteScriptmethod executes JavaScript in the context of the currently selected frame or window. 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 System.Int64), a System.Boolean, a System.String or a 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 ( By by ) : IWebElement |
Find the first IWebElement using the given method.
|
|
FindElements ( By by ) : ReadOnlyCollection |
Find all
|
|
GetScreenshot ( ) : Screenshot |
Gets a Screenshot object representing the image of the page on the screen.
|
|
Manage ( ) : IOptions |
Instructs the driver to change its settings.
|
|
Navigate ( ) : INavigation |
Instructs the driver to navigate the browser to another location.
|
|
Quit ( ) : void |
Quits this driver, closing every associated window.
|
|
SwitchTo ( ) : ITargetLocator |
Instructs the driver to send future commands to a different frame or window.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Frees all managed and, optionally, unmanaged resources used by this instance.
|
|
OnElementClicked ( OpenQA.Selenium.Support.Events.WebElementEventArgs e ) : void |
Raises the ElementClicked event.
|
|
OnElementClicking ( OpenQA.Selenium.Support.Events.WebElementEventArgs e ) : void |
Raises the ElementClicking event.
|
|
OnElementValueChanged ( OpenQA.Selenium.Support.Events.WebElementEventArgs e ) : void |
Raises the ElementValueChanged event.
|
|
OnElementValueChanging ( OpenQA.Selenium.Support.Events.WebElementEventArgs e ) : void |
Raises the ElementValueChanging event.
|
|
OnException ( OpenQA.Selenium.Support.Events.WebDriverExceptionEventArgs e ) : void |
Raises the ExceptionThrown event.
|
|
OnFindElementCompleted ( OpenQA.Selenium.Support.Events.FindElementEventArgs e ) : void |
Raises the FindElementCompleted event.
|
|
OnFindingElement ( OpenQA.Selenium.Support.Events.FindElementEventArgs e ) : void |
Raises the FindingElement event.
|
|
OnNavigated ( |
Raises the Navigated event.
|
|
OnNavigatedBack ( |
Raises the NavigatedBack event.
|
|
OnNavigatedForward ( |
Raises the NavigatedForward event.
|
|
OnNavigating ( |
Raises the Navigating event.
|
|
OnNavigatingBack ( |
Raises the NavigatingBack event.
|
|
OnNavigatingForward ( |
Raises the NavigatingForward event.
|
|
OnScriptExecuted ( OpenQA.Selenium.Support.Events.WebDriverScriptEventArgs e ) : void |
Raises the ScriptExecuted event.
|
|
OnScriptExecuting ( OpenQA.Selenium.Support.Events.WebDriverScriptEventArgs e ) : void |
Raises the ScriptExecuting event.
|
Метод | Описание | |
---|---|---|
UnwrapElementArguments ( object args ) : object[] | ||
WrapElement ( IWebElement underlyingElement ) : IWebElement |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public EventFiringWebDriver ( IWebDriver parentDriver ) : System | ||
parentDriver | IWebDriver | The driver to register events for. |
Результат | System |
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 by ) : IWebElement | ||
by | By | The locating mechanism to use. |
Результат | IWebElement |
public FindElements ( By by ) : ReadOnlyCollection |
||
by | By | The locating mechanism to use. |
Результат | ReadOnlyCollection |
protected OnElementClicked ( OpenQA.Selenium.Support.Events.WebElementEventArgs e ) : void | ||
e | OpenQA.Selenium.Support.Events.WebElementEventArgs | A |
Результат | void |
protected OnElementClicking ( OpenQA.Selenium.Support.Events.WebElementEventArgs e ) : void | ||
e | OpenQA.Selenium.Support.Events.WebElementEventArgs | A |
Результат | void |
protected OnElementValueChanged ( OpenQA.Selenium.Support.Events.WebElementEventArgs e ) : void | ||
e | OpenQA.Selenium.Support.Events.WebElementEventArgs | A |
Результат | void |
protected OnElementValueChanging ( OpenQA.Selenium.Support.Events.WebElementEventArgs e ) : void | ||
e | OpenQA.Selenium.Support.Events.WebElementEventArgs | A |
Результат | void |
protected OnException ( OpenQA.Selenium.Support.Events.WebDriverExceptionEventArgs e ) : void | ||
e | OpenQA.Selenium.Support.Events.WebDriverExceptionEventArgs | A |
Результат | void |
protected OnFindElementCompleted ( OpenQA.Selenium.Support.Events.FindElementEventArgs e ) : void | ||
e | OpenQA.Selenium.Support.Events.FindElementEventArgs | A |
Результат | void |
protected OnFindingElement ( OpenQA.Selenium.Support.Events.FindElementEventArgs e ) : void | ||
e | OpenQA.Selenium.Support.Events.FindElementEventArgs | A |
Результат | void |
protected OnNavigated ( |
||
e | A |
|
Результат | void |
protected OnNavigatedBack ( |
||
e | A |
|
Результат | void |
protected OnNavigatedForward ( |
||
e | A |
|
Результат | void |
protected OnNavigating ( |
||
e | A |
|
Результат | void |
protected OnNavigatingBack ( |
||
e | A |
|
Результат | void |
protected OnNavigatingForward ( |
||
e | A |
|
Результат | void |
protected OnScriptExecuted ( OpenQA.Selenium.Support.Events.WebDriverScriptEventArgs e ) : void | ||
e | OpenQA.Selenium.Support.Events.WebDriverScriptEventArgs | A |
Результат | void |
protected OnScriptExecuting ( OpenQA.Selenium.Support.Events.WebDriverScriptEventArgs e ) : void | ||
e | OpenQA.Selenium.Support.Events.WebDriverScriptEventArgs | A |
Результат | void |