Class SwingMultiSelectList
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.UiMultiSelectList
-
- com.axway.ats.uiengine.elements.swing.SwingMultiSelectList
-
public class SwingMultiSelectList extends UiMultiSelectList
A Multiple 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 SwingMultiSelectList(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearSelections()Clears the selectionString[]getAvailableValues()Get MultiSelectList available valuesString[]getValues()Get MultiSelectList valuevoidrightClick(String... contextMenuItems)voidsetValue(String value)Set MultiSelectList valuevoidunsetValue(String value)Unset MultiSelectList valuevoidverifyNotValue(String notExpectedValue)Verify the specified value is NOT selectedvoidverifyValue(String expectedValue)Verify the specified value is selected-
Methods inherited from class com.axway.ats.uiengine.elements.UiElement
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toString
-
-
-
-
Constructor Detail
-
SwingMultiSelectList
public SwingMultiSelectList(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
getValues
public String[] getValues()
Get MultiSelectList value- Specified by:
getValuesin classUiMultiSelectList- Returns:
- the selected values
- Throws:
VerificationException- if the element doesn't exist
-
setValue
public void setValue(String value)
Set MultiSelectList value- Specified by:
setValuein classUiMultiSelectList- Parameters:
value- the value to set- Throws:
VerificationException- if the element doesn't exist
-
unsetValue
public void unsetValue(String value)
Unset MultiSelectList value- Specified by:
unsetValuein classUiMultiSelectList- Parameters:
value- - the value to unselect- Throws:
VerificationException- if the element doesn't exist
-
getAvailableValues
public String[] getAvailableValues()
Get MultiSelectList available values- Returns:
Stringarray with all the available values- Throws:
VerificationException- if the element doesn't exist
-
clearSelections
public void clearSelections()
Clears the selection- Throws:
VerificationException- if the element doesn't exist
-
rightClick
public void rightClick(String... contextMenuItems)
- Parameters:
contextMenuItems- context menu items to select
-
verifyValue
public void verifyValue(String expectedValue)
Verify the specified value is selected- Specified by:
verifyValuein classUiMultiSelectList- Parameters:
expectedValue-- Throws:
VerificationException- if the element doesn't existVerifyEqualityException- if the verification fails
-
verifyNotValue
public void verifyNotValue(String notExpectedValue)
Verify the specified value is NOT selected- Specified by:
verifyNotValuein classUiMultiSelectList- Parameters:
notExpectedValue-- Throws:
VerificationException- if the element doesn't existVerifyNotEqualityException- if the verification fails
-
-