com.rational.test.ft.object.interfaces

Interface IFileDialog

  • All Superinterfaces:
    IFrame, IGraphical, ITopWindow
    All Known Implementing Classes:
    FileDialogTestObject


    public interface IFileDialog
    extends ITopWindow
    Defines the methods uniquely associated with a file-dialog type of control. These methods apply to native file dialog control-based TestObjects. They do not apply to custom file dialogs that do not appear internally to be file-dialog controls.
    Since:
    RFT6.1.1.1
    See Also:
    ITopWindow FileDialogTestObject FileDialogTestObject}
    • Method Detail

      • setFile

        void setFile(java.lang.String file)
        Sets the full path name specified in the associated file dialog window. Both the directory name and file name are specified in the appropriate file path format for the target test context.
        Parameters:
        file - The full path name for the desired file
        Example:
        To set the file path in the AWTBasic Java Application

        FileDialog().setFile("C:\temp\test.java")

        Since:
        RFT6.1.1.1
      • clickAccept

        void clickAccept()
        Clicks the button on the file dialog that is associated with recognition information. The recognition information associated with this button varies from host to host. Therefore, a more generic method is supplied to perform this functionality.
        Example:
        To open the file in the AWTBasic Java Application

        fileDialog().clickAccept()

        Since:
        RFT6.1.1.1
      • clickCancel

        void clickCancel()
        Clicks the cancel button on the file dialog. The recognition information associated with this button varies from host to host. Therefore, a more generic method is supplied to perform this functionality.
        Example:
        To cancel the file dialog the AWTBasic Java Application

        fileDialog().clickCancel(")

        Since:
        RFT6.1.1.1