com.rational.test.ft.domain.html

Class BrowserTabProxy

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


    public class BrowserTabProxy
    extends ElementProxy
    Implements the proxy for Browser Tab Button element.
    • TestObject Interface: BrowserTabTestObject

    • 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:
    RFT8.1
    • Constructor Detail

      • BrowserTabProxy

        public BrowserTabProxy(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:
        RFT8.1
      • 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
      • getTestObjectClassName

        public java.lang.String getTestObjectClassName()
        Description copied from class: HtmlProxy
        The default GUI marshaller is returned. More specific marshallers are returned by more constrained proxy classes. This level of support is always required.
        Specified by:
        getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBase
        Overrides:
        getTestObjectClassName in class HtmlGuiProxy
        Returns:
        The default mashaller class full 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
      • 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.
      • close

        public void close()
      • setMethodSpecification

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

        public com.rational.test.ft.domain.ProxyTestObject getVisualTopParent()
        Overrides:
        getVisualTopParent in class HtmlProxy