Class SwingFileBrowse
- java.lang.Object
-
- com.axway.ats.uiengine.elements.UiElement
-
- com.axway.ats.uiengine.elements.UiFileBrowse
-
- com.axway.ats.uiengine.elements.swing.SwingFileBrowse
-
public class SwingFileBrowse extends UiFileBrowse
A Swing File Chooser
-
-
Field Summary
-
Fields inherited from class com.axway.ats.uiengine.elements.UiElement
log, properties
-
-
Constructor Summary
Constructors Constructor Description SwingFileBrowse(UiDriver uiDriver, UiElementProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclickApprove()Click the Approve button (labeled "Open" or "Save", by default).voidclickCancel()Click the Cancel buttonStringgetValue()Get the value of the 'File Name' text fieldvoidsetValue(String value)Set value in the 'File Name' text fieldvoidverifyNotValue(String notExpectedValue)Verifies that the value of 'File Name' text field is different from the expectedvoidverifyValue(String expectedValue)Verifies that the value of 'File Name' text field is as expected-
Methods inherited from class com.axway.ats.uiengine.elements.UiElement
checkTypeAndRules, getElementProperties, getElementProperty, getPropertyNamesToUseForMatch, getUiDriver, logAction, toString
-
-
-
-
Constructor Detail
-
SwingFileBrowse
public SwingFileBrowse(UiDriver uiDriver, UiElementProperties properties)
-
-
Method Detail
-
clickApprove
public void clickApprove()
Click the Approve button (labeled "Open" or "Save", by default). This method causes an action event to fire with the command string equal to APPROVE_SELECTION.- Throws:
VerificationException- if the element doesn't exist
-
clickCancel
public void clickCancel()
Click the Cancel button- Throws:
VerificationException- if the element doesn't exist
-
setValue
public void setValue(String value)
Set value in the 'File Name' text field- Specified by:
setValuein classUiFileBrowse- Parameters:
value- the text value to set
-
getValue
public String getValue()
Get the value of the 'File Name' text field- Specified by:
getValuein classUiFileBrowse- Returns:
- the text value of the 'File Name' text field
-
verifyValue
public void verifyValue(String expectedValue)
Verifies that the value of 'File Name' text field is as expected- Specified by:
verifyValuein classUiFileBrowse- Parameters:
expectedValue- the expected text value- Throws:
VerifyEqualityException- if the expected text value is different from the actual
-
verifyNotValue
public void verifyNotValue(String notExpectedValue)
Verifies that the value of 'File Name' text field is different from the expected- Specified by:
verifyNotValuein classUiFileBrowse- Parameters:
notExpectedValue- the NOT expected text value- Throws:
VerifyNotEqualityException- if the expected text value is equal with the actual
-
-