Méthode | Description | |
---|---|---|
Close ( ) : void |
Closes the Browser
|
|
Dispose ( ) : void |
Dispose the RemoteWebDriver Instance
|
|
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
|
|
FindElement ( By by ) : IWebElement |
Finds the first element in the page that matches the By object
|
|
FindElementByClassName ( string className ) : IWebElement |
Finds the first element in the page that matches the CSS Class supplied
|
|
FindElementByCssSelector ( string cssSelector ) : IWebElement |
Finds the first element matching the specified CSS selector.
|
|
FindElementById ( string id ) : IWebElement |
Finds the first element in the page that matches the ID supplied
|
|
FindElementByLinkText ( string linkText ) : IWebElement |
Finds the first of elements that match the link text supplied
|
|
FindElementByName ( string name ) : IWebElement |
Finds the first of elements that match the name supplied
|
|
FindElementByPartialLinkText ( string partialLinkText ) : IWebElement |
Finds the first of elements that match the part of the link text supplied
|
|
FindElementByTagName ( string tagName ) : IWebElement |
Finds the first of elements that match the DOM Tag supplied
|
|
FindElementByXPath ( string xpath ) : IWebElement |
Finds the first of elements that match the XPath supplied
|
|
FindElements ( By by ) : ReadOnlyCollection |
Finds the elements on the page by using the By object and returns a ReadOnlyCollection of the Elements on the page
|
|
FindElementsByClassName ( string className ) : ReadOnlyCollection |
Finds a list of elements that match the classname supplied
|
|
FindElementsByCssSelector ( string cssSelector ) : ReadOnlyCollection |
Finds all elements matching the specified CSS selector.
|
|
FindElementsById ( string id ) : ReadOnlyCollection |
Finds the first element in the page that matches the ID supplied
|
|
FindElementsByLinkText ( string linkText ) : ReadOnlyCollection |
Finds a list of elements that match the link text supplied
|
|
FindElementsByName ( string name ) : ReadOnlyCollection |
Finds a list of elements that match the name supplied
|
|
FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection |
Finds a list of elements that match the classname supplied
|
|
FindElementsByTagName ( string tagName ) : ReadOnlyCollection |
Finds a list of elements that match the DOM Tag supplied
|
|
FindElementsByXPath ( string xpath ) : ReadOnlyCollection |
Finds a list of elements that match the XPath supplied
|
|
Manage ( ) : IOptions |
Method For getting an object to set the Speen
|
|
Navigate ( ) : INavigation |
Method to allow you to Navigate with WebDriver
|
|
Quit ( ) : void |
Close the Browser and Dispose of WebDriver
|
|
RemoteWebDriver ( ICapabilities desiredCapabilities ) : System |
Initializes a new instance of the RemoteWebDriver class. This constructor defaults proxy to http://127.0.0.1:4444/wd/hub
|
|
RemoteWebDriver ( ICommandExecutor commandExecutor, ICapabilities desiredCapabilities ) : System |
Initializes a new instance of the RemoteWebDriver class
|
|
RemoteWebDriver ( |
Initializes a new instance of the RemoteWebDriver class
|
|
RemoteWebDriver ( |
Initializes a new instance of the RemoteWebDriver class using the specified remote address, desired capabilties, and command timeout.
|
|
SwitchTo ( ) : ITargetLocator |
Method to give you access to switch frames and windows
|
Méthode | Description | |
---|---|---|
CreateElement ( string elementId ) : |
Creates a RemoteWebElement with the specified ID.
|
|
Dispose ( bool disposing ) : void |
Stops the client from running
|
|
Execute ( |
Executes a command with this driver .
|
|
FindElement ( string mechanism, string value ) : IWebElement |
Finds an element matching the given mechanism and value.
|
|
FindElements ( string mechanism, string value ) : ReadOnlyCollection |
Finds all elements matching the given mechanism and value.
|
|
StartClient ( ) : void |
Starts the command executor, enabling communication with the browser.
|
|
StartSession ( ICapabilities desiredCapabilities ) : void |
Starts a session with the driver
|
|
StopClient ( ) : void |
Stops the command executor, ending further communication with the browser.
|
Méthode | Description | |
---|---|---|
ConvertArgumentsToJavaScriptObjects ( object args ) : object[] | ||
ConvertObjectToJavaScriptObject ( object arg ) : object | ||
ExecuteScriptInternal ( string script, bool async ) : object | ||
GetElementFromResponse ( OpenQA.Selenium.Remote.Response response ) : IWebElement |
Find the element in the response
|
|
GetElementsFromResponse ( OpenQA.Selenium.Remote.Response response ) : ReadOnlyCollection |
Finds the elements that are in the response
|
|
InternalExecute ( |
Executes commands with the driver
|
|
ParseJavaScriptReturnValue ( object responseValue ) : object | ||
UnpackAndThrowOnError ( OpenQA.Selenium.Remote.Response errorResponse ) : void |
protected CreateElement ( string elementId ) : |
||
elementId | string | The ID of this element. |
Résultat |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | if its in the process of disposing |
Résultat | void |
protected Execute ( |
||
driverCommandToExecute | A |
|
parameters | object>.Dictionary | A |
Résultat | OpenQA.Selenium.Remote.Response |
public ExecuteAsyncScript ( string script ) : object | ||
script | string | The JavaScript code to execute. |
Résultat | object |
public ExecuteScript ( string script ) : object | ||
script | string | The JavaScript code to execute. |
Résultat | object |
public FindElement ( By by ) : IWebElement | ||
by | By | By mechanism to find the object |
Résultat | IWebElement |
protected FindElement ( string mechanism, string value ) : IWebElement | ||
mechanism | string | The mechanism by which to find the element. |
value | string | The value to use to search for the element. |
Résultat | IWebElement |
public FindElementByClassName ( string className ) : IWebElement | ||
className | string | className of the |
Résultat | IWebElement |
public FindElementByCssSelector ( string cssSelector ) : IWebElement | ||
cssSelector | string | The CSS selector to match. |
Résultat | IWebElement |
public FindElementById ( string id ) : IWebElement | ||
id | string | ID of the element |
Résultat | IWebElement |
public FindElementByLinkText ( string linkText ) : IWebElement | ||
linkText | string | Link text of element |
Résultat | IWebElement |
public FindElementByName ( string name ) : IWebElement | ||
name | string | Name of the element on the page |
Résultat | IWebElement |
public FindElementByPartialLinkText ( string partialLinkText ) : IWebElement | ||
partialLinkText | string | part of the link text |
Résultat | IWebElement |
public FindElementByTagName ( string tagName ) : IWebElement | ||
tagName | string | DOM tag Name of the element being searched |
Résultat | IWebElement |
public FindElementByXPath ( string xpath ) : IWebElement | ||
xpath | string | xpath to the element |
Résultat | IWebElement |
public FindElements ( By by ) : ReadOnlyCollection |
||
by | By | By mechanism to find the element |
Résultat | ReadOnlyCollection |
protected FindElements ( string mechanism, string value ) : ReadOnlyCollection |
||
mechanism | string | The mechanism by which to find the elements. |
value | string | The value to use to search for the elements. |
Résultat | ReadOnlyCollection |
public FindElementsByClassName ( string className ) : ReadOnlyCollection |
||
className | string | CSS class Name on the element |
Résultat | ReadOnlyCollection |
public FindElementsByCssSelector ( string cssSelector ) : ReadOnlyCollection |
||
cssSelector | string | The CSS selector to match. |
Résultat | ReadOnlyCollection |
public FindElementsById ( string id ) : ReadOnlyCollection |
||
id | string | ID of the Element |
Résultat | ReadOnlyCollection |
public FindElementsByLinkText ( string linkText ) : ReadOnlyCollection |
||
linkText | string | Link text of element |
Résultat | ReadOnlyCollection |
public FindElementsByName ( string name ) : ReadOnlyCollection |
||
name | string | Name of element |
Résultat | ReadOnlyCollection |
public FindElementsByPartialLinkText ( string partialLinkText ) : ReadOnlyCollection |
||
partialLinkText | string | part of the link text |
Résultat | ReadOnlyCollection |
public FindElementsByTagName ( string tagName ) : ReadOnlyCollection |
||
tagName | string | DOM tag Name of element being searched |
Résultat | ReadOnlyCollection |
public FindElementsByXPath ( string xpath ) : ReadOnlyCollection |
||
xpath | string | xpath to the element |
Résultat | ReadOnlyCollection |
public RemoteWebDriver ( ICapabilities desiredCapabilities ) : System | ||
desiredCapabilities | ICapabilities | An |
Résultat | System |
public RemoteWebDriver ( ICommandExecutor commandExecutor, ICapabilities desiredCapabilities ) : System | ||
commandExecutor | ICommandExecutor | An |
desiredCapabilities | ICapabilities | An |
Résultat | System |
public RemoteWebDriver ( |
||
remoteAddress | URI containing the address of the WebDriver remote server (e.g. http://127.0.0.1:4444/wd/hub). | |
desiredCapabilities | ICapabilities | An |
Résultat | System |
public RemoteWebDriver ( |
||
remoteAddress | URI containing the address of the WebDriver remote server (e.g. http://127.0.0.1:4444/wd/hub). | |
desiredCapabilities | ICapabilities | An |
commandTimeout | System.TimeSpan | The maximum amount of time to wait for each command. |
Résultat | System |
protected StartSession ( ICapabilities desiredCapabilities ) : void | ||
desiredCapabilities | ICapabilities | Capabilities of the browser |
Résultat | void |