Interface ITable
A Java table.
public interface ITable : ITableBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
- Inherited Members
- Extension Methods
Properties
ColumnHeaders
Returns the column headers.
ReadOnlyCollection<string> ColumnHeaders { get; }
Property Value
Rows
Returns the ITableRow objects.
ReadOnlyCollection<ITableRow> Rows { get; }
Property Value
Methods
ActivateRow(int)
Double-clicks a row.
void ActivateRow(int row)
Parameters
rowint0-based row number.
DeselectColumns(params int[])
Unselects columns by column indexes.
void DeselectColumns(params int[] columns)
Parameters
columnsint[]0-based indexes of the columns.
Remarks
Important: This method is not supported for SWT tables.
DeselectColumns(params string[])
Unselects columns by column headers.
void DeselectColumns(params string[] columnHeaders)
Parameters
columnHeadersstring[]Headers of the columns.
Remarks
Important: This method is not supported for SWT tables.
DeselectColumnsRange(int, int)
Unselects a range of columns by column indexes.
void DeselectColumnsRange(int fromColumn, int toColumn)
Parameters
Remarks
Important: This method is not supported for SWT tables.
DeselectColumnsRange(string, string)
Unselects a range of columns by column headers.
void DeselectColumnsRange(string fromColumnHeader, string toColumnHeader)
Parameters
fromColumnHeaderstringHeader of the first column.
toColumnHeaderstringHeader of the last column.
Remarks
Important: This method is not supported for SWT tables.
DeselectRows(params ITableRow[])
Unselects rows by ITableRow.
void DeselectRows(params ITableRow[] rows)
Parameters
DeselectRows(params int[])
Unselects rows by row indexes.
void DeselectRows(params int[] rows)
Parameters
rowsint[]0-based indexes.
DeselectRowsRange(ITableRow, ITableRow)
Unselects a range of rows in a table by ITableRow.
void DeselectRowsRange(ITableRow fromRow, ITableRow toRow)
Parameters
ExtendSelectColumns(params int[])
Selects additional columns in the table.
void ExtendSelectColumns(params int[] columns)
Parameters
columnsint[]0-based indexes.
ExtendSelectColumns(params string[])
Selects additional columns in the table.
void ExtendSelectColumns(params string[] columnHeaders)
Parameters
columnHeadersstring[]Headers of the columns.
ExtendSelectColumnsRange(int, int)
Selects the specified range of additional columns in the table.
void ExtendSelectColumnsRange(int fromColumn, int toColumn)
Parameters
fromColumnint0-based index of the first column in the range of columns you want to select.
toColumnint0-based index of the last column in the range of columns you want to select.
ExtendSelectColumnsRange(string, string)
Selects the specified range of additional columns in the table.
void ExtendSelectColumnsRange(string fromColumnHeader, string toColumnHeader)
Parameters
fromColumnHeaderstringHeader of the first column in the range of columns you want to select.
toColumnHeaderstringHeader of the last column in the range of columns you want to select.
ExtendSelectRows(params ITableRow[])
Selects additional rows in the table.
void ExtendSelectRows(params ITableRow[] rows)
Parameters
ExtendSelectRows(params int[])
Selects additional rows in the table.
void ExtendSelectRows(params int[] rows)
Parameters
rowsint[]0-based indexes to select.
ExtendSelectRowsRange(ITableRow, ITableRow)
Selects the specified range of additional rows in the table.
void ExtendSelectRowsRange(ITableRow fromRow, ITableRow toRow)
Parameters
ExtendSelectRowsRange(int, int)
Selects the specified range of additional rows in the table.
void ExtendSelectRowsRange(int fromRow, int toRow)
Parameters
GetCell(int, string)
Returns a cell specified by row index and column header.
ITableCell GetCell(int row, string columnHeader)
Parameters
Returns
GetTableCellValues(ITableRow, ITableRow)
Returns the content of all cells contained in a range of rows.
string[][] GetTableCellValues(ITableRow startRow, ITableRow endRow)
Parameters
Returns
- string[][]
GetTableCellValues(ITableRow, ITableRow, int, int)
Returns the content of all cells contained in an area of the table. The area is defined by a range of rows and a range of column indices.
string[][] GetTableCellValues(ITableRow startRow, ITableRow endRow, int startColumnIndex, int endColumnIndex)
Parameters
startRowITableRowThe first row in the range.
endRowITableRowThe last row in the range.
startColumnIndexintThe 0-based number of the first column in the range.
endColumnIndexintThe 0-based number of the last column in the range.
Returns
- string[][]
GetTableCellValues(ITableRow, ITableRow, string, string)
Returns the content of all cells contained in an area of the table. The area is defined by a range of rows and a range of column names.
string[][] GetTableCellValues(ITableRow startRow, ITableRow endRow, string startColumnName, string endColumnName)
Parameters
startRowITableRowThe first row in the range.
endRowITableRowThe last row in the range.
startColumnNamestringThe name of the first column in the range.
endColumnNamestringThe name of the last column in the range.
Returns
- string[][]
SelectColumnHeader(int, MouseButton)
Clicks on a column header of a table using the specified MouseButton by column index.
void SelectColumnHeader(int column, MouseButton button = MouseButton.Left)
Parameters
columnint0-based index of the column.
buttonMouseButtonEither the Left or Right button value of MouseButton.
SelectColumnHeader(string, MouseButton)
Clicks on a column header using the specified MouseButton by column header.
void SelectColumnHeader(string columnHeader, MouseButton button = MouseButton.Left)
Parameters
columnHeaderstringThe header of the column.
buttonMouseButtonEither the Left or Right button value of MouseButton.
SelectColumns(params int[])
Selects columns by column indexes.
void SelectColumns(params int[] columns)
Parameters
columnsint[]0-based indexes.
SelectColumns(params string[])
Selects columns by column headers.
void SelectColumns(params string[] columnHeaders)
Parameters
columnHeadersstring[]Headers of the columns.
SelectRows(params ITableRow[])
Selects rows by ITableRow.
void SelectRows(params ITableRow[] rows)
Parameters
SelectRows(params int[])
Selects rows indexes.
void SelectRows(params int[] rows)
Parameters
rowsint[]0-based indexes.
SelectRowsRange(ITableRow, ITableRow)
Selects a range of rows by row object.
void SelectRowsRange(ITableRow fromRow, ITableRow toRow)