com.rational.test.ft.object.interfaces

Class DialogTestObject

    • Constructor Detail

      • DialogTestObject

        public DialogTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
        For internal use.
        Since:
        RFT8.0.1
      • DialogTestObject

        public DialogTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                                TestObject anchor)
        For internal use.
        Since:
        RFT8.0.1
      • DialogTestObject

        public DialogTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                                TestObject anchor,
                                long scriptCommandFlags)
        For internal use.
        Since:
        RFT8.0.1
      • DialogTestObject

        public DialogTestObject(com.rational.test.ft.object.TestObjectReference ref)
        For internal use.
        Since:
        RFT8.0.1
      • DialogTestObject

        public DialogTestObject(TestObject obj)
        For internal use.
        Since:
        RFT8.0.1
    • Method Detail

      • getText

        public java.lang.String getText()
        Allows direct access to the text property on the control.
        Returns:
        the active text in the control.
        Example:
        Access the text property of the dialog String text = dialog().getText();
        Since:
        RFT8.0.1
      • setText

        public void setText(java.lang.String text)
        Directly modifies the text on the control. Any existing text in the control is replaced with the specified text value. The API dose not guarantee the immediate update on the dialog.
        Parameters:
        text - the text to update the control with.
        Since:
        RFT8.0.1
      • getStyle

        public int getStyle()
        Allows direct access to the style property on the control.
        Returns:
        the style for the control.
        Example:
        int style = dialog().getStyle();
        Since:
        RFT8.0.1
      • clickAccept

        public void clickAccept()
        Clicks on the dialog button that accepts the recognition information. This information varies from host to host. Therefore, a generic method is supplied to perform this functionality.
        Since:
        RFT6.1.1.1
      • clickCancel

        public void clickCancel()
        Clicks on the cancel button on the dialog. The recognition information that is associated with this button varies from host to host. Therefore, a generic method is supplied to perform this functionality.
        Since:
        RFT6.1.1.1
      • close

        public void close()
        Clicks on the close button on the top right corner of the Dialog
        Specified by:
        close in interface IFrame
        Overrides:
        close in class TopLevelTestObject
        Detail description:
        The click happens on the close button through the glass.
        Example:
        Close the Dialog dialog().close();
        Since:
        RFT8.0.1