com.rational.test.ft.domain.html

Class BrowserToolbarProxy

  • All Implemented Interfaces:
    com.ibm.rational.test.ft.clearscript.IClearscript, 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.IGraphical


    public class BrowserToolbarProxy
    extends ElementProxy
    implements com.ibm.rational.test.ft.clearscript.IClearscript
    Implements the proxy for Browser Toolbar Button elements.
    • TestObject Interface: GuiTestObject

    • Default Recognition Properties:
      • .class
      • .name

    • 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.
      .disabled The value of the disabled attribute of an element, returned as a boolean.  If true then user input is currently disabled for this item.
      .name This is the value of the name attribute (Form elements and Frames only)

    Since:
    RFT1.0
    • Constructor Detail

      • BrowserToolbarProxy

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

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

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

        public boolean shouldBeMapped()
        Description copied from class: ElementProxy
        Always returns true, because all HTML GUI objects are interesting.
        Overrides:
        shouldBeMapped in class ElementProxy
        Returns:
        false
      • 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
      • getClippingParentRectangle

        public java.awt.Rectangle getClippingParentRectangle()
        Description copied from class: HtmlGuiProxy
        Return the screen rectangle of this objects clipping parent.
        Overrides:
        getClippingParentRectangle in class HtmlGuiProxy
      • getActionArgs

        protected java.util.Vector getActionArgs(java.awt.Point point)
        Description copied from class: HtmlGuiProxy
        Generate the action argument for the screen point. This method is called by the processMouseEvent implementation in this class. Subclasses should override this and substitute the corresponding ISubItem object(s). The default implementation generates a java.awt.Point which is relative to the upper left of the object as the single argument.
        Overrides:
        getActionArgs in class HtmlGuiProxy
        Parameters:
        point - point in screen coordinates
        Returns:
        a vector containing the appropriate subitem arguments.
      • setMethodSpecification

        protected void setMethodSpecification(com.rational.test.ft.domain.IMouseActionInfo action,
                                              java.lang.String method,
                                              java.util.Vector args)
        Overrides:
        setMethodSpecification in class HtmlGuiProxy
      • processPreDownMouseEvent

        protected void processPreDownMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
        Overrides:
        processPreDownMouseEvent in class HtmlGuiProxy
      • getClearscriptSimpleName

        public java.lang.String getClearscriptSimpleName()
        Specified by:
        getClearscriptSimpleName in interface com.ibm.rational.test.ft.clearscript.IClearscript