C# Class CatsUnitTest.WebDriverExtension

Show file Open project: edgecomputing/cats-hub-module

Public Methods

Method Description
AutomateLogin ( this driver, string username, string password ) : void
WaitForHttpResponse ( this driver, By by ) : void
WaitForHttpResponse ( this driver, string regEx ) : void

An extension method for an IWebDriver instance that searches for an element (given a regular expression string)

Private Methods

Method Description
IsElementPresent ( OpenQA driver, By by ) : bool

Method Details

AutomateLogin() public static method

public static AutomateLogin ( this driver, string username, string password ) : void
driver this
username string
password string
return void

WaitForHttpResponse() public static method

public static WaitForHttpResponse ( this driver, By by ) : void
driver this
by OpenQA.Selenium.By
return void

WaitForHttpResponse() public static method

An extension method for an IWebDriver instance that searches for an element (given a regular expression string)
public static WaitForHttpResponse ( this driver, string regEx ) : void
driver this
regEx string The element to be searched for
return void