com.rational.test.ft.object.interfaces

Class EmbeddedBrowserTestObject

  • All Implemented Interfaces:
    IBrowserObject, IGraphical


    public class EmbeddedBrowserTestObject
    extends GuiTestObject
    implements IBrowserObject
    Provides script access to the general embedded browser, which is the HTML Browser TestObject class.
    Since:
    RFT2.0
    • Constructor Detail

      • EmbeddedBrowserTestObject

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

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

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

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

        public EmbeddedBrowserTestObject(TestObject obj)
        Constructs one TestObject from another. Both are references to the same object.
        Since:
        RFT2.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/.