Class SwingRadioButton
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.swing.SwingRadioButton
-
public class SwingRadioButton extends UiElement
A Swing Radio ButtonCan be identified by:
- name
- text
- label
-
-
Field Summary
-
Fields inherited from class com.axway.ats.uiengine.elements.UiElement
log, properties
-
-
Constructor Summary
Constructors Constructor Description SwingRadioButton(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSelected()Check if the radio button is selected or notvoidselect()Select radio buttonvoidverifyNotSelected()Verify the selected value is NOT as specifiedvoidverifySelected()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
-
SwingRadioButton
public SwingRadioButton(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
isSelected
public boolean isSelected()
Check if the radio button is selected or not- Returns:
- if the radio button is selected or not
- Throws:
VerificationException- if the element doesn't exist
-
select
public void select()
Select radio button- Throws:
VerificationException- if the element doesn't exist
-
verifySelected
public void verifySelected()
Verify the selected value is as specified- Parameters:
expectedValue-- Throws:
VerificationException- if the element doesn't exist or the verification fails
-
verifyNotSelected
public void verifyNotSelected()
Verify the selected value is NOT as specified- Parameters:
notExpectedValue-- Throws:
VerificationException- if the element doesn't exist or the verification fails
-
-