com.rational.test.ft.object.interfaces

Class BrowserTestObject

    • Constructor Detail

      • BrowserTestObject

        public BrowserTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
        For internal use.
        Since:
        RFT1.0
      • BrowserTestObject

        public BrowserTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                                 TestObject anchor)
        For internal use.
        Since:
        RFT1.0
      • BrowserTestObject

        public BrowserTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                                 TestObject anchor,
                                 long scriptCommandFlags)
        For internal use.
        Since:
        RFT1.0
      • BrowserTestObject

        public BrowserTestObject(com.rational.test.ft.object.TestObjectReference ref)
        For internal use.
        Since:
        RFT1.0
      • BrowserTestObject

        public BrowserTestObject(TestObject obj)
        Constructs one TestObject from another. Both are references to the same object.
        Since:
        RFT1.0
    • Method Detail

      • back

        public boolean back()
        Description copied from interface: IBrowserObject
        Navigates the browser back to the previous page
        Specified by:
        back in interface IBrowserObject
        Returns:
        boolean - true when the navigation starts; false when there is no previous page.
      • forward

        public boolean forward()
        Description copied from interface: IBrowserObject
        Navigates the browser forward to the next page
        Specified by:
        forward in interface IBrowserObject
        Returns:
        boolean - true when the navigation starts; false when there is no forward page.
      • home

        public boolean home()
        Description copied from interface: IBrowserObject
        Navigates the browser to the default home page.
        Specified by:
        home in interface IBrowserObject
        Returns:
        boolean - true when the navigation starts; false when there is no home page defined for this browser.
      • loadUrl

        public boolean loadUrl(java.lang.String url,
                               java.lang.String target)
        Description copied from interface: IBrowserObject
        Loads the given URL into the browser.
        Specified by:
        loadUrl in interface IBrowserObject
        Parameters:
        url - string path of the page to load into browser
        target - string name of the HTML frame where page is to be loaded
        Returns:
        boolean - true when the page load starts; false if the page does not load.
      • loadUrl

        public boolean loadUrl(java.lang.String url)
        Description copied from interface: IBrowserObject
        Loads the given URL into the browser.
        Specified by:
        loadUrl in interface IBrowserObject
        Parameters:
        url - string path of the page to load into browser
        Returns:
        boolean - true when the page load starts; false if the page does not load.
      • deleteCookies

        public void deleteCookies(java.lang.String cookie,
                                  boolean recursive)
        Description copied from interface: IBrowserObject
        Deletes browser cookies specified by the path in cookie
        Specified by:
        deleteCookies in interface IBrowserObject
        Parameters:
        cookie - The full path of the cookie. This is usually the domain followed by the directory path in which the intended document resides, for example, http://a.com.
        recursive - If set, all cookies that are children of the path specified in cookie are deleted, for example, a.com/b/.
      • inputChars

        public void inputChars(java.lang.String keys)
        Description copied from class: TopLevelTestObject
        Sends the supplied characters to the associated window. The window is responsible for sending the characters on to the appropriate controls nested in that window. The characters are uninterpreted. For example, inputChars("+a+b") emits "+a+b", in contrast to inputKeys("+a+b"), which interprets the "+" as a shift and emits "AB".
        Specified by:
        inputChars in interface ITopWindow
        Overrides:
        inputChars in class TopLevelTestObject
        Parameters:
        keys - The characters to be processed by this window
      • inputKeys

        public void inputKeys(java.lang.String keys)
        Description copied from class: TopLevelTestObject
        Sends the supplied characters to the associated window. The window is responsible for sending the characters on to the appropriate controls nested in that window. The characters in the given string are interpreted according to the rules documented under ITopWindow.inputKeys.
        Specified by:
        inputKeys in interface ITopWindow
        Overrides:
        inputKeys in class TopLevelTestObject
        Parameters:
        keys - the characters to be processed by this window