Interface IGridBase
Base interface for Web grid test objects.
public interface IGridBase : IWebElement, ITestObject, IClickable, IWebTestObject, IWebDescriber, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IVisibleProvider, ISupportDragAndDrop
- Inherited Members
- Extension Methods
Properties
ColumnHeaders
A list of column headers.
ReadOnlyCollection<string> ColumnHeaders { get; }
Property Value
Rows
A list of ITableRow rows.
ReadOnlyCollection<ITableRow> Rows { get; }
Property Value
Methods
FindRowWithCellTextInColumn(TextMatch, ColumnToSearch)
Finds the row with the specified text in the specified column, in cases where the text or columnHeader may appear more than once. Scrolls to the found row if one exists.
ITableRow FindRowWithCellTextInColumn(TextMatch textMatch, ColumnToSearch columnToSearch)
Parameters
textMatchTextMatchDescription of the text we are looking for.
columnToSearchColumnToSearchThe column number or column header in which to search for the text.
Returns
- ITableRow
The requested row if one exists
Remarks
Usage example: var row = grid.FindRowWithCellTextInColumn(TextMatch.Match("Portuguese", 2), ColumnToSearch.ByHeader("Language", 1)); This example finds the 3rd occurrence of the text "Portuguese" in the 2nd column with the header "Language".
Exceptions
- GeneralLeanFtException
If the requested row cannot be found or error occurs during execution.
FindRowWithCellTextInColumn(string, string)
Finds the first row with this text in the specified column.
ITableRow FindRowWithCellTextInColumn(string text, string columnHeader)
Parameters
Returns
- ITableRow
The requested row, or null if none exists.
FindRowWithCellTextInColumn(string, string, uint)
Finds the first row with the specified text in the specified column, starting from the specified row.
ITableRow FindRowWithCellTextInColumn(string text, string columnHeader, uint startFromRow)
Parameters
textstringText to find.
columnHeaderstringThe column header.
startFromRowuintIndex from which to start the search.
Returns
- ITableRow
The requested row, or null if none exists.
FindRowWithCellTextInColumn(string, uint)
Finds the first row with this text in the specified column.
ITableRow FindRowWithCellTextInColumn(string text, uint columnNumber)
Parameters
Returns
- ITableRow
The requested row, or null if none exists.
FindRowWithCellTextInColumn(string, uint, uint)
Finds the first row with the specified text in the specified column, starting from the specified row.
ITableRow FindRowWithCellTextInColumn(string text, uint columnNumber, uint startFromRow)
Parameters
textstringText to find.
columnNumberuintThe column number to search.
startFromRowuintIndex from which to start the search.
Returns
- ITableRow
The requested row, or null if none exists.
SelectCell(uint, string)
Selects the specified cell in the grid.
void SelectCell(uint row, string columnHeader)
Parameters
SelectCell(uint, uint)
Selects the specified cell in the grid.
void SelectCell(uint row, uint column)