IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.object.interfaces
Class EmbeddedBrowserTestObject

java.lang.Object   extended by com.rational.test.ft.object.interfaces.TestObject
      extended by com.rational.test.ft.object.interfaces.ClientTestObject
          extended by com.rational.test.ft.object.interfaces.GuiTestObject
              extended by com.rational.test.ft.object.interfaces.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

Field Summary
 
Fields inherited from class com.rational.test.ft.object.interfaces.TestObject
ref
 
Constructor Summary
EmbeddedBrowserTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
          For internal use.
EmbeddedBrowserTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
          For internal use.
EmbeddedBrowserTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
          For internal use.
EmbeddedBrowserTestObject(TestObject obj)
          Constructs one TestObject from another.
EmbeddedBrowserTestObject(com.rational.test.ft.object.TestObjectReference ref)
          For internal use.
 
Method Summary
 boolean back()
          Navigates the browser back to the previous page
 void deleteCookies()
          Deletes all of the browser's cookies.
 void deleteCookies(java.lang.String cookie, boolean recursive)
          Deletes browser cookies specified by the path in cookie
 boolean forward()
          Navigates the browser forward to the next page
 boolean home()
          Navigates the browser to the default home page.
 boolean loadUrl(java.lang.String url)
          Loads the given URL into the browser.
 boolean loadUrl(java.lang.String url, java.lang.String target)
          Loads the given URL into the browser.
 
Methods inherited from class com.rational.test.ft.object.interfaces.GuiTestObject
canTakeVP, click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getClippedScreenRectangle, getImage, getImage, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getVisibleArea, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint
 
Methods inherited from class com.rational.test.ft.object.interfaces.ClientTestObject
exists, find, find, findAndInvoke, findAndInvokeProxy, invoke, invokeProxy, unregister, waitForExistence
 
Methods inherited from class com.rational.test.ft.object.interfaces.TestObject
compare, compare, compareAndLog, compareAndLog, equals, find, findAndInvoke, getActualData, getChildren, getDescribedObject, getDescribedObjects, getDescriptiveName, getDomain, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMapProperties, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectCustomClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getProperties, getProperty, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTestDataTypes, getTopMappableParent, getTopParent, hashCode, invoke, invokeProxy, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setMapProperties, setProperty, toString, updateTestData, waitForExistence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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()
Description copied from interface: IBrowserObject
Deletes all of the browser's cookies.

Specified by:
deleteCookies in interface IBrowserObject

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