Class SwingComboBox
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.UiComboBox
-
- com.axway.ats.uiengine.elements.swing.SwingComboBox
-
public class SwingComboBox extends UiComboBox
A Swing ComboBoxCan be identified by:
- name
- label
-
-
Field Summary
-
Fields inherited from class com.axway.ats.uiengine.elements.UiElement
log, properties
-
-
Constructor Summary
Constructors Constructor Description SwingComboBox(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getAvailableValues()Get ComboBox available valuesStringgetValue()Get ComboBox valuevoidsetValue(String value)Set ComboBox 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
-
SwingComboBox
public SwingComboBox(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
getValue
public String getValue()
Get ComboBox value- Specified by:
getValuein classUiComboBox- Returns:
- the selected value
- Throws:
VerificationException- if the element doesn't exist
-
setValue
public void setValue(String value)
Set ComboBox value- Specified by:
setValuein classUiComboBox- Parameters:
value- the ComboBox value to set- Throws:
VerificationException- if the element doesn't exist
-
getAvailableValues
public String[] getAvailableValues()
Get ComboBox available values- Returns:
Stringarray with all the available values- Throws:
VerificationException- if the element doesn't exist
-
verifyValue
public void verifyValue(String expectedValue)
Verify the selected value is as specified- Specified by:
verifyValuein classUiComboBox- 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 classUiComboBox- Parameters:
notExpectedValue-- Throws:
VerificationException- if the element doesn't existVerifyNotEqualityException- if the verification fails
-
-