Class HiddenHtmlTable
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.UiTable
-
- com.axway.ats.uiengine.elements.html.HtmlTable
-
- com.axway.ats.uiengine.elements.html.hiddenbrowser.HiddenHtmlTable
-
public class HiddenHtmlTable extends HtmlTable
An HTML Table- See Also:
HiddenHtmlElement
-
-
Field Summary
-
Fields inherited from class com.axway.ats.uiengine.elements.UiElement
log, properties
-
-
Constructor Summary
Constructors Constructor Description HiddenHtmlTable(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[][]getAllValues()Get the values of all table cells.
Note: If a table cell contains a checkbox - we will return 'checked' or 'notchecked' value.intgetColumnCount()StringgetFieldValue(int row, int column)Get the value of the specified table fieldintgetRowCount()voidsetFieldValue(String value, int row, int column)Set value of specified table fieldvoidverifyFieldValue(String expectedValue, int row, int column)Verify the field value is as specifiedvoidverifyFieldValueRegex(String expectedValueRegex, int row, int column)Verify the field value matches the specified java regular expressionvoidverifyNotFieldValue(String notExpectedValue, int row, int column)Verify the field value is NOT as specified-
Methods inherited from class com.axway.ats.uiengine.elements.html.HtmlTable
generateScriptForGettingTableContent
-
Methods inherited from class com.axway.ats.uiengine.elements.UiElement
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toString
-
-
-
-
Constructor Detail
-
HiddenHtmlTable
public HiddenHtmlTable(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
setFieldValue
public void setFieldValue(String value, int row, int column)
Set value of specified table field- Specified by:
setFieldValuein classUiTable- Parameters:
value- the new table cell valuerow- the field row starting at 0column- the field column starting at 0
-
getFieldValue
public String getFieldValue(int row, int column)
Get the value of the specified table field- Specified by:
getFieldValuein classUiTable- Parameters:
row- the field row starting at 0column- the field column starting at 0- Returns:
- the value
-
getAllValues
public String[][] getAllValues()
Get the values of all table cells.
Note: If a table cell contains a checkbox - we will return 'checked' or 'notchecked' value.- Returns:
- a two dimensional array containing all table cell values
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin classUiTable- Returns:
- how many rows this table has
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin classUiTable- Returns:
- how many columns this table has
-
verifyFieldValue
public void verifyFieldValue(String expectedValue, int row, int column)
Verify the field value is as specified- Specified by:
verifyFieldValuein classUiTable- Parameters:
expectedValue-row- the field row starting at 0column- the field column starting at 0
-
verifyNotFieldValue
public void verifyNotFieldValue(String notExpectedValue, int row, int column)
Verify the field value is NOT as specified- Specified by:
verifyNotFieldValuein classUiTable- Parameters:
notExpectedValue-row- the field row starting at 0column- the field column starting at 0
-
verifyFieldValueRegex
public void verifyFieldValueRegex(String expectedValueRegex, int row, int column)
Verify the field value matches the specified java regular expression- Specified by:
verifyFieldValueRegexin classUiTable- Parameters:
expectedValueRegex- a java regular expressionrow- the field row starting at 0column- the field column starting at 0
-
-