DriverUtilities Methods |
The DriverUtilities type exposes the following members.
Name | Description | |
---|---|---|
AcceptAndCloseAlert |
This method is used to close the Alert/pop-up by clicking Yes/Accept button from Alet/Pop-up
| |
ActionBuilder |
This method is used to return Actions object for building custom keyboard/mouse actions
| |
ClearTextIgnoringStaleElementException |
Clear text from textbox ignoring the Stale Element exception
| |
ClickOnCellTextFromTable |
Clicks on specific cell of a table as per given row and column index
| |
ClickOnElement |
This method is used to click on IWebelement by using "By" locator
| |
ClickOnElementIgnoringStaleElementException |
Clcik on Element ignoring the Stale Element exception
| |
ClickOnSpecificCellFromTable |
Clicks on specific cell# from table
| |
CloseAlertAndGetItsText |
This method is used to close the Alert/pop-up and get message from the pop-up
| |
DragAndDrop |
Used to drag and drop the element
| |
Dropdown(By) | ||
Dropdown(IWebElement) |
This method is used to choose the dropdown by its identifier
| |
EnterText |
This method is used to enter the text in the specified element
| |
EnterTextIgnoringStaleElementException |
Enter Text in text box ignoring the Stale Element exception
| |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindElement | ||
GetAllItemsToStringList |
This method is used to get a list of "Text" values for items in IWebelement list
| |
GetAllItemsToStringListExcludingBlank |
This method is used to get a list of "Text" values for items in IWebelement list excluding blank values
| |
GetAttributeValue |
Get value of a specific attribute
| |
GetCollection |
This method simultates "driver.findElements" and is useful to get collection
| |
GetCollectionFromPageToStringList |
This method is used to get a list of "Text" values for items from collection on page
| |
GetCollectionFromPageToStringListWit |
This method is used to get a list of "Text" values for items from collection on page,without last blank value if any
| |
GetCollectionToList |
This method is used to get the similar elements to the IWebElement list
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetIndexOfRowContainingSpecificText |
Returns the row number of required text by using common row identifier and requiredtext
| |
GetIndexOfTableRowContainingSpecificText |
Returns the row number of required text by using table identifier and requiredtext
| |
GetIwebElementTextToStringList |
This method is used to get all text items of the IWebElement list to the string list
| |
GetNumberOfRowsInTable(By) |
Gets the number of rows in a table on the screen, by providing the 'By' selector for table
| |
GetNumberOfRowsInTable(IWebElement) |
Gets the number of rows in a table on the screen, by providing the identifier for table
| |
GetText |
This method is used to get the text value of specified element
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValueFromSpecificCellFromTable(By, Int32, Int32) |
Returns the value from specific cell of a table as per given row and column index
| |
GetValueFromSpecificCellFromTable(IWebElement, Int32, Int32) |
Returns the value from specific cell of a table as per given row and column index
| |
GetValuesOfColumnFromTable |
Gets values from a specified column from table, using columname from table
| |
GetValuesOfSpecificColumnFromTable(By, Int32) |
This method is used to the get all values from specific column of table
by providing | |
GetValuesOfSpecificColumnFromTable(IWebElement, Int32) |
This method is used to the get all values from specific column of table
by providing table identifier and column index
| |
HandleNotNullInnerException |
This method is used to handle exceptions having some Inner exception message
| |
HandleNullInnerException |
This methos is used to handle the exceptions with NULL inner exception messages
| |
ImplicitWait |
Implicit timeout in seconds
| |
IsAlertPresent |
This method is used to check if the Alert/Pop-up is present
| |
IsElementPresent(By) |
This method is used to check if the specified element is present on the page
| |
IsElementPresent(IWebElement) |
This method is used to check if the specified element is present on the page
| |
JsClick |
Click the provided identifier using JavaScript(jQuery) click event
| |
JsExecutor |
Returns the JavaScript executor for performing JavaScript Operations
| |
JsScrollTillEnd |
Used to scroll till end of the page
| |
JsScrollTillPoint |
Scrolls page to the specified cordinates
| |
JsScrollToTop |
Used to scroll to top of the page
| |
LoginWithDifferentUser |
This method is used login with difeerent users for a website
Note:This will work for chrome browser by default, for IE you might need to do some settings
| |
ManageFailure |
This method is used to handle exceptions during test execution,this is specifically useful to restart the
driver when gets stopped/Not-Responding due to some unexpected issues
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveCursor | Method to set the postion of the Mouse cursor on screen
Need to specify X and Y cordinates for desired mouse cursor postion. Check Point for more information. | |
NavigateToURL |
This method is used to Navigate to URL
| |
PrintStringList |
Prints the items in List of string items
| |
SelectFromDrpDwnIgnoringStaleElementException |
This method is used to select value from Select Tag dropdown
by ignoring a Stale Element Exception
| |
SelectFromListDropDown |
To select a element from List dropdown
| |
SelectFromListDrpDwnIgnoringStaleElementException |
To Select a element from list dropdown ignoring the Stale Element exception
| |
SetfocusAndClickOnIWebElement |
This method is used to set the mouse focus to the element specified by identifier
| |
SetfocusOnIWebElement |
This method is used to set the mouse focus to specified element
| |
Setup |
This method is uesed to launch the browser (driver) based on the browser configured in App.config
| |
SplitEachItemInStringCollectionAndAddtoList |
Splits each item from string collection and adds it to string list
| |
SwitchToDilog |
Used to switch to SharePoint dlg
| |
SwitchToWindow |
Switch to tab using a predicate condition
| |
TakeScreenshot |
This method is used to take a screenshot,it also returns the location of screenshot
| |
Teardown |
This method is used to close the browser(driver)
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Wait |
This method returns the object of WebdriverWait class for using methods like Wait.Until...
| |
WaitForElementIsClickable(By, Int32) |
This method is used to wait for element to be ready before clicking
| |
WaitForElementIsClickable(IWebElement, Int32) |
This method is used to wait for element to be ready before clicking
| |
WaitForElementToGetInVisible |
This method is used to wait for element to get invisible
| |
WaitForElementVisible | Method to wait for Element to be Visible
You need to pass the locator and time to wait for in seconds default time is 30 secondsWebDriverWait for more information. |