Class SwingFileBrowse


  • public class SwingFileBrowse
    extends UiFileBrowse
    A Swing File Chooser
    • 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:
        setValue in class UiFileBrowse
        Parameters:
        value - the text value to set
      • getValue

        public String getValue()
        Get the value of the 'File Name' text field
        Specified by:
        getValue in class UiFileBrowse
        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:
        verifyValue in class UiFileBrowse
        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:
        verifyNotValue in class UiFileBrowse
        Parameters:
        notExpectedValue - the NOT expected text value
        Throws:
        VerifyNotEqualityException - if the expected text value is equal with the actual