com.rational.test.ft.domain.html

Class AppletProxy

  • 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.INestedDomain, com.rational.test.ft.domain.IProxyBase, com.rational.test.ft.domain.IQuickFind, com.rational.test.ft.domain.IXPathFind, com.rational.test.ft.object.interfaces.IGraphical


    public class AppletProxy
    extends ElementProxy
    implements com.rational.test.ft.domain.INestedDomain
    Implements the proxy for HTML Applet elements.
    • TestObject Interface: GuiTestObject

    • Supported Test Data Types:
      TypeDesciption
      text Button Visible Text ITestDataText

    • Default Recognition Properties:
      • .class
      • .classIndex
      • .id
      • .name
      • .text
      • .title

    • Supported Canonical Properties:
      PropertyUsage
      .bounds A rectangle representing the bounding rectangle of the object in screen coordinates.
      .class This is the  test object class name, for example "HtmlTable" for a <Table> element.
      .code The value of the code attribute of an APPLET element.
      .codeBase The value of codebase attribute of an APPLET element.
      .height The value of the height attribute of an element.  For an Image element this is the display height  in pixels for the image.
      .id This is the value of the id attribute of an element.
      .name This is the value of the name attribute (Form elements and Frames only)
      .offsetHeight The height of the element.
      .offsetLeft The offset of the element from its offset parent in the DOM.
      .offsetTop The offset of the element from its offset parent in the DOM.
      .offsetWidth The width  of the element.
      .screenLeft Upper left corner of bounding rectangle in screen coordinates, x component.
      .screenTop Upper left corner of bounding rectangle in screen coordinates, y component.
      .tag This is the Html tag for the element
      .text This is the text inside of the HTML tags for bounding the element.  For example, <A>This is an Anchor<IMG src=map.gif></a>   the text property will return "This is an Anchor.   All white space are combined and reduced to a single a blank character if consecutive white space characters are found.
      .title This is the value of the title attribute of an element.  This is frequently the text displayed when hovering over the element with the mouse.
      .width The value of the width attribute of an element.  For an Image element this is the display width in pixels for the image.
      .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
    • Constructor Detail

    • Method Detail

      • getRole

        public java.lang.String getRole()
        Returns TestObjectRole.ROLE_HTML.
        Overrides:
        getRole in class HtmlProxy
        Returns:
        A brief type name that describes the role this object plays in the UI.
        Since:
        RFT1.0
      • getTopLevelWindowRectangle

        public java.awt.Rectangle getTopLevelWindowRectangle()
        Returns the bounding rectangle of the contained applet object
        Specified by:
        getTopLevelWindowRectangle in interface com.rational.test.ft.domain.INestedDomain
      • getTopLevelWindowHandle

        public long getTopLevelWindowHandle()
        Returns window handle of the contained toplevel object
        Specified by:
        getTopLevelWindowHandle in interface com.rational.test.ft.domain.INestedDomain
      • 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()
      • isFlexObject

        public boolean isFlexObject()
      • isPdfObject

        public boolean isPdfObject()