com.rational.test.ft.domain.html

Class TopLevelWindowProxy

  • 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:
    HtmlBrowserProxy, HtmlDialogProxy, HtmlPopupProxy


    public abstract class TopLevelWindowProxy
    extends HtmlGuiProxy
    implements com.rational.test.ft.object.interfaces.ITopWindow
    Provides a proxy baseclass for all top level windows based objects in the HtmlTestDomainImplementation.
    • TestObject Interface: GuiTestObject

    • 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.
      .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.
      .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.

    Since:
    1.0
    • Constructor Detail

      • TopLevelWindowProxy

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

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

      • processMouseEvent

        public void processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
        Description copied from class: HtmlGuiProxy
        Return a MethodSpecification for the specified mouse event. This is the primary record interface for mouse events against a particular control. This implementation calls getActionArgs to generate the appropriate subitem specification. Subclasses which generate subitem specifications should override getActionArgs.
        Overrides:
        processMouseEvent in class HtmlGuiProxy
        Parameters:
        action - The event cache and other mouse state information for this mouse action.
        See Also:
        MethodSpecification, HtmlGuiProxy.getActionArgs(java.awt.Point)
      • isShowing

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

        public abstract com.rational.test.ft.sys.graphical.TopLevelWindow getWindow()
      • processBrowserPreDownMouseEvent

        public void processBrowserPreDownMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
      • processBrowserPostUpMouseEvent

        public void processBrowserPostUpMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
      • getScriptCommandFlags

        public com.rational.test.ft.script.ScriptCommandFlags getScriptCommandFlags()
        Overrides:
        getScriptCommandFlags in class HtmlProxy
      • activate

        public void activate()
        Specified by:
        activate in interface com.rational.test.ft.object.interfaces.ITopWindow
      • close

        public void close()
        Specified by:
        close in interface com.rational.test.ft.object.interfaces.IFrame
      • contextHelp

        public void contextHelp()
        Specified by:
        contextHelp in interface com.rational.test.ft.object.interfaces.IFrame
      • maximize

        public void maximize()
        Specified by:
        maximize in interface com.rational.test.ft.object.interfaces.IFrame
      • minimize

        public void minimize()
        Specified by:
        minimize in interface com.rational.test.ft.object.interfaces.IFrame
      • restore

        public void restore()
        Specified by:
        restore in interface com.rational.test.ft.object.interfaces.IFrame
      • resize

        public void resize(int width,
                           int height)
        Specified by:
        resize in interface com.rational.test.ft.object.interfaces.IFrame
      • move

        public void move(java.awt.Point screenPt)
        Specified by:
        move in interface com.rational.test.ft.object.interfaces.IFrame
      • isIconified

        public boolean isIconified()
        Specified by:
        isIconified in interface com.rational.test.ft.object.interfaces.IFrame
      • clickDisabled

        public void clickDisabled()
        Specified by:
        clickDisabled in interface com.rational.test.ft.object.interfaces.ITopWindow
      • inputKeys

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

        public void inputChars(java.lang.String keys)
        Specified by:
        inputChars in interface com.rational.test.ft.object.interfaces.ITopWindow
      • 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 HtmlProxy
        Returns:
        null, no known parent.
      • switchTo

        public boolean switchTo()