com.rational.test.ft.domain.html

Class HtmlDialogProxy

  • All Implemented Interfaces:
    com.rational.test.ft.domain.IChannelObject, com.rational.test.ft.domain.IDataDriven, com.rational.test.ft.domain.IGetInterestingRecogProsForDynFind, com.rational.test.ft.domain.IHtmlCustomDomainEnablement, com.rational.test.ft.domain.IInternalObjectStatus, com.rational.test.ft.domain.IProxyBase, com.rational.test.ft.domain.IQuickFind, com.rational.test.ft.domain.IXPathFind, com.rational.test.ft.object.interfaces.IFrame, com.rational.test.ft.object.interfaces.IGraphical, com.rational.test.ft.object.interfaces.ITopWindow
    Direct Known Subclasses:
    BrowserDialogProxy


    public class HtmlDialogProxy
    extends TopLevelWindowProxy
    Provides the proxy for HTML browser objects in the HtmlTestDomainImplementation.
    • TestObject Interface: TopLevelTestObject

    • Default Recognition Properties:
      • .caption
      • .class

    • Supported Canonical Properties:
      PropertyUsage
      .bounds A rectangle representing the bounding rectangle of the object in screen coordinates.
      .caption For TABLE elements is the the value of the caption  attribute.  For an Html dialog this is the text of the dialog's caption.
      .class This is the  test object class name, for example "HtmlTable" for a <Table> element.
      .window This is the heavyweight window for the element returned as a long. For the Browser,  this is the top level window.

    Since:
    RFT1.0
    • Field Detail

      • debug

        protected static com.rational.test.ft.util.FtDebug debug
      • okText

        protected java.lang.String okText
      • cancelText

        protected java.lang.String cancelText
    • Constructor Detail

      • HtmlDialogProxy

        public HtmlDialogProxy(HtmlTestDomainImplementation domain,
                               com.rational.test.ft.domain.IChannel channel,
                               long handle)
      • HtmlDialogProxy

        public HtmlDialogProxy(HtmlTestDomainImplementation domain,
                               com.rational.test.ft.domain.IChannel channel,
                               long handle,
                               com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
      • HtmlDialogProxy

        public HtmlDialogProxy(HtmlTestDomainImplementation domain,
                               com.rational.test.ft.domain.IChannel channel,
                               com.rational.test.ft.sys.graphical.Window window)
    • Method Detail

      • getTestObjectClassName

        public java.lang.String getTestObjectClassName()
        Returns the class name for the TestObject. Browser objects are top-level objects. This class will be instantiated in the client.
        Specified by:
        getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBase
        Overrides:
        getTestObjectClassName in class HtmlGuiProxy
        Returns:
        The default mashaller class full name.
        Since:
        RFT1.0
      • shouldBeMapped

        public boolean shouldBeMapped()
        Always returns true, because browser objects must always be mapped.
        Overrides:
        shouldBeMapped in class HtmlProxy
        Returns:
        true element has an id or name. false not a supported HTML object type
        Since:
        RFT1.0
      • getDescriptiveName

        public java.lang.String getDescriptiveName()
        Description copied from class: HtmlProxy
        Returns a name that can be used to describe the associated UI object in a script. This name may be further adjusted to be made unique to the script, but will act as the base for the name used in the script. Only characters used in Html identifiers should be returned (alphabetic, numeric or underscore characters). Non-identifier characters will cause script compilation failures. An example of what to return may be "OKButton" for a Html.BUTTON with the text "OK" on it.
        Overrides:
        getDescriptiveName in class HtmlProxy
        Returns:
        A descriptive object name.
      • getClippingParent

        public com.rational.test.ft.object.interfaces.IGraphical getClippingParent()
        Description copied from class: HtmlGuiProxy
        Get the clipping parent for this object. The clipping parent is the object whose rectangle will clip all of its children, usually the browser or a frame. Unfortunately, it can also be a div tag in the object hierarchy, so going directly to the document does not worl
        Overrides:
        getClippingParent in class HtmlGuiProxy
      • getChildAtPoint

        public java.lang.Object getChildAtPoint(java.awt.Point pt)
        Description copied from class: HtmlGuiProxy
        Finds the most interesting child object at the specified point. Note that the point is relative to the top left corner of the screen, and not the component itself or its parent.

        If this object has no children, it should return null.

        Specified by:
        getChildAtPoint in interface com.rational.test.ft.object.interfaces.IGraphical
        Overrides:
        getChildAtPoint in class HtmlGuiProxy
        Parameters:
        pt - Screen relative point to check.
        Returns:
        The object at the point or null if no child object is found.
        See Also:
        HtmlGuiProxy.getScreenRectangle()
      • getPropertyInternal

        public java.lang.Object getPropertyInternal(java.lang.String propertyName)
        Overrides:
        getPropertyInternal in class HtmlProxy
      • getProperty

        public java.lang.Object getProperty(java.lang.String propertyName)
        Description copied from class: HtmlProxy
        Get the value for a specific property.
        Overrides:
        getProperty in class HtmlProxy
      • isShowing

        public boolean isShowing()
        Specified by:
        isShowing in interface com.rational.test.ft.object.interfaces.IGraphical
        Overrides:
        isShowing in class TopLevelWindowProxy
      • getMappableParent

        public com.rational.test.ft.domain.ProxyTestObject getMappableParent(com.rational.test.ft.sys.ContextObject co)
        Description copied from class: HtmlProxy
        Walks the HtmlProxy.getParent() relationship until a mappable parent is encountered.
        Overrides:
        getMappableParent in class HtmlProxy
        Returns:
        The first mappable parent located.
      • getMappableParent

        public com.rational.test.ft.domain.ProxyTestObject getMappableParent()
        Description copied from class: HtmlProxy
        Walks the HtmlProxy.getParent() relationship until a mappable parent is encountered.
        Overrides:
        getMappableParent in class HtmlProxy
        Returns:
        The first mappable parent located.
      • getParent

        public com.rational.test.ft.domain.ProxyTestObject getParent(com.rational.test.ft.sys.ContextObject co)
        Description copied from class: HtmlProxy
        Returns null always because object relationships are not understood at this level of abstaction.
        Overrides:
        getParent in class HtmlProxy
        Returns:
        null, no known parent.
      • getParent

        public com.rational.test.ft.domain.ProxyTestObject getParent()
        Description copied from class: HtmlProxy
        Returns null always because object relationships are not understood at this level of abstaction.
        Overrides:
        getParent in class HtmlProxy
        Returns:
        null, no known parent.
      • getStandardProperties

        public java.util.Hashtable getStandardProperties()
        overriding getstandard properties for js domain, else call super.getproperties
        Overrides:
        getStandardProperties in class HtmlProxy
      • getChildrenEnumeration

        public java.util.Enumeration getChildrenEnumeration()
        Description copied from class: HtmlProxy
        Enumerate child objects of the Html Element.
        Overrides:
        getChildrenEnumeration in class HtmlProxy
        Returns:
        java.util.Enumeration - enumeration of all immediate children in the Html container hierarchly of this element. null if no children.
      • getChildren

        public com.rational.test.ft.domain.ProxyTestObject[] getChildren()
        Description copied from class: HtmlProxy
        Uses getChildrenEnumeration to implement.
        Overrides:
        getChildren in class HtmlProxy
        Returns:
        null, if no known children.
      • findElementsDirectly

        public com.rational.test.ft.domain.ProxyTestObject[] findElementsDirectly(boolean mappable)
        Specified by:
        findElementsDirectly in interface com.rational.test.ft.domain.IQuickFind
        Overrides:
        findElementsDirectly in class HtmlProxy
      • inputChars

        public void inputChars(java.lang.String keysToSend)
        Specified by:
        inputChars in interface com.rational.test.ft.object.interfaces.ITopWindow
        Overrides:
        inputChars in class TopLevelWindowProxy
      • inputKeys

        public void inputKeys(java.lang.String keysToSend)
        Specified by:
        inputKeys in interface com.rational.test.ft.object.interfaces.ITopWindow
        Overrides:
        inputKeys in class TopLevelWindowProxy
      • getOwner

        public com.rational.test.ft.domain.ProxyTestObject getOwner()
        Description copied from class: HtmlProxy
        Returns null always because object relationships are not understood at this level of abstaction.
        Overrides:
        getOwner in class TopLevelWindowProxy
        Returns:
        null, no known parent.