Class SwingSpinner
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.swing.SwingSpinner
-
public class SwingSpinner extends UiElement
A Swing SpinnerCan be identified by:
- name
- label
-
-
Field Summary
-
Fields inherited from class com.axway.ats.uiengine.elements.UiElement
log, properties
-
-
Constructor Summary
Constructors Constructor Description SwingSpinner(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclickNext()Click next/increment spinner buttonvoidclickNext(int times)Click next/increment spinner buttonvoidclickPrevious()Click previous/decrement spinner buttonvoidclickPrevious(int times)Click previous/decrement spinner buttonvoidenterText(String text)Enter text in the spinner text field without committing the value.StringgetValue()Get spinner text valuevoidsetValue(String value)Set spinner text value (entering and committing the given text in the JSpinner)-
Methods inherited from class com.axway.ats.uiengine.elements.UiElement
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toString
-
-
-
-
Constructor Detail
-
SwingSpinner
public SwingSpinner(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
setValue
public void setValue(String value)
Set spinner text value (entering and committing the given text in the JSpinner)- Throws:
VerificationException- if the element doesn't exist
-
getValue
public String getValue()
Get spinner text value- Throws:
VerificationException- if the element doesn't exist
-
enterText
public void enterText(String text)
Enter text in the spinner text field without committing the value.- Throws:
VerificationException- if the element doesn't exist
-
clickNext
public void clickNext()
Click next/increment spinner button- Throws:
VerificationException- if the element doesn't exist
-
clickNext
public void clickNext(int times)
Click next/increment spinner button- Parameters:
times- number of times to click. Must be greater than 0- Throws:
VerificationException- if the element doesn't exist
-
clickPrevious
public void clickPrevious()
Click previous/decrement spinner button- Throws:
VerificationException- if the element doesn't exist
-
clickPrevious
public void clickPrevious(int times)
Click previous/decrement spinner button- Parameters:
times- number of times to click. Must be greater than 0- Throws:
VerificationException- if the element doesn't exist
-
-