Package com.axway.ats.uiengine.elements
Class UiTable
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.UiTable
-
- Direct Known Subclasses:
HtmlTable
,SwingTable
public abstract class UiTable extends UiElement
A Table
-
-
Field Summary
-
Fields inherited from class com.axway.ats.uiengine.elements.UiElement
log, properties
-
-
Constructor Summary
Constructors Constructor Description UiTable(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract int
getColumnCount()
abstract String
getFieldValue(int row, int column)
Get the value of the specified table fieldabstract int
getRowCount()
abstract void
setFieldValue(String value, int row, int column)
Set the value of the specified table fieldabstract void
verifyFieldValue(String expectedValue, int row, int column)
Verify the field value is as specifiedabstract void
verifyFieldValueRegex(String expectedValueRegex, int row, int column)
Verify the field value matches the specified java regular expressionabstract void
verifyNotFieldValue(String notExpectedValue, int row, int column)
Verify the field value is NOT as specified-
Methods inherited from class com.axway.ats.uiengine.elements.UiElement
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toString
-
-
-
-
Constructor Detail
-
UiTable
public UiTable(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
getFieldValue
public abstract String getFieldValue(int row, int column)
Get the value of the specified table field- Parameters:
row
- the field row starting at 0column
- the field column starting at 0- Returns:
-
setFieldValue
public abstract void setFieldValue(String value, int row, int column)
Set the value of the specified table field- Parameters:
row
- the field row starting at 0column
- the field column starting at 0
-
getRowCount
public abstract int getRowCount()
- Returns:
- how many rows this table has
-
getColumnCount
public abstract int getColumnCount()
- Returns:
- how many columns this table has
-
verifyFieldValue
public abstract void verifyFieldValue(String expectedValue, int row, int column)
Verify the field value is as specified- Parameters:
expectedValue
-row
- the field row starting at 0column
- the field column starting at 0
-
verifyNotFieldValue
public abstract void verifyNotFieldValue(String notExpectedValue, int row, int column)
Verify the field value is NOT as specified- Parameters:
notExpectedValue
-row
- the field row starting at 0column
- the field column starting at 0
-
verifyFieldValueRegex
public abstract void verifyFieldValueRegex(String expectedValueRegex, int row, int column)
Verify the field value matches the specified java regular expression- Parameters:
expectedValueRegex
- a java regular expressionrow
- the field row starting at 0column
- the field column starting at 0
-
-