Class SwingSingleSelectList
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.UiSingleSelectList
-
- com.axway.ats.uiengine.elements.swing.SwingSingleSelectList
-
public class SwingSingleSelectList extends UiSingleSelectList
A Single Selection Swing ListCan be identified by:
- name
- label
-
-
Field Summary
-
Fields inherited from class com.axway.ats.uiengine.elements.UiElement
log, properties
-
-
Constructor Summary
Constructors Constructor Description SwingSingleSelectList(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearSelection()Clears the selectionString[]getAvailableValues()Get SingleSelectList available valuesStringgetValue()Get SingleSelectList valuevoidsetValue(String value)Set SingleSelectList valuevoidverifyNotValue(String notExpectedValue)Verify the selected value is NOT as specifiedvoidverifyValue(String expectedValue)Verify the selected value is as specified-
Methods inherited from class com.axway.ats.uiengine.elements.UiElement
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toString
-
-
-
-
Constructor Detail
-
SwingSingleSelectList
public SwingSingleSelectList(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
getValue
public String getValue()
Get SingleSelectList value- Specified by:
getValuein classUiSingleSelectList- Returns:
- the selected value
- Throws:
VerificationException- if the element doesn't exist
-
setValue
public void setValue(String value)
Set SingleSelectList value- Specified by:
setValuein classUiSingleSelectList- Parameters:
value- the value to set- Throws:
VerificationException- if the element doesn't exist
-
getAvailableValues
public String[] getAvailableValues()
Get SingleSelectList available values- Returns:
Stringarray with all the available values- Throws:
VerificationException- if the element doesn't exist
-
clearSelection
public void clearSelection()
Clears the selection- Throws:
VerificationException- if the element doesn't exist
-
verifyValue
public void verifyValue(String expectedValue)
Verify the selected value is as specified- Specified by:
verifyValuein classUiSingleSelectList- Parameters:
expectedValue-- Throws:
VerificationException- if the element doesn't existVerifyEqualityException- if the verification fails
-
verifyNotValue
public void verifyNotValue(String notExpectedValue)
Verify the selected value is NOT as specified- Specified by:
verifyNotValuein classUiSingleSelectList- Parameters:
notExpectedValue-- Throws:
VerificationException- if the element doesn't existVerifyNotEqualityException- if the verification fails
-
-