public class HtmlBrowserProxy extends TopLevelWindowProxy implements com.rational.test.ft.object.interfaces.IBrowserObject
HtmlTestDomainImplementation.
BrowserTestObject
| Property | Usage |
|---|---|
| .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. |
| .clientRect | The bounding rectangle of the element in client coordinates. |
| .documentName | The name of the top document page loaded in the browser. |
| .offsetHeight | The height of the element. |
| .offsetLeft | The offset of the element from its offset parent in the DOM. |
| .offsetTop | The offset of the element from its offset parent in the DOM. |
| .offsetWidth | The width of the element. |
| .readyState | This is the current status of a browser, indicating whether
it is currently loading a document or is ready for user
input. This is an integer value:
0 - Uninitialized 1 - Loading 2 - Loaded 3- Interactive 4 - Complete (ready) |
| .window | This is the heavyweight window for the element returned as a long. For the Browser, this is the top level window. |
| Modifier and Type | Class and Description |
|---|---|
class |
HtmlBrowserProxy.GetDocClippedScreenRectangleRunnable |
class |
HtmlBrowserProxy.GetHandleAtPointRunnable |
class |
HtmlBrowserProxy.GetPropertyInternalRunnable |
TopLevelWindowProxy.CharEmiter, TopLevelWindowProxy.KeyEmiterHtmlGuiProxy.Clicker, HtmlGuiProxy.DoubleClicker, HtmlGuiProxy.Dragger, HtmlGuiProxy.Hoverer, HtmlGuiProxy.nClickDragger, HtmlGuiProxy.nClicker, HtmlGuiProxy.PointIteratorHtmlProxy.GetObjectRunnable, HtmlProxy.HtmlElementEnumeration, HtmlProxy.IntegerByReference, HtmlProxy.InvalidNativeHandleException, HtmlProxy.JSObjectHtmlElementEnumeration, HtmlProxy.NativeProxyReleasedExceptioncurrentMethod, GETSCREENSNAPSHOT, IS_WEB_PLAYER, LEFT, MAXIMIZE, OFFSETHEIGHTPROPERTY, OFFSETLEFTPROPERTY, OFFSETRECTPROPERTY, OFFSETTOPPROPERTY, OFFSETWIDTHPROPERTY, ONCHANGE, ONMOUSEOVER, RESTORE, TEXTBODYTAG, BOUNDSPROPERTY, channel, CLASSINDEX, CLASSPROPERTY, CLIENTRECTPROPERTY, debug, DISABLEDPROPERTY, DOCCLASSINDEX, dojoProps, domain, HTMLPROXYCHANNELRUNNABLE_TIMEOUTVALUE, IDPROPERTY, isSiebelActive, jswarapper, NAMEPROPERTY, OUTERTEXT, parentsTextDescendantsMayBeInteresting, READONLYPROPERTY, TAGPROPERTY, TESTDATA_TEXT, TEXTPROPERTY, TITLEPROPERTY, UNIQUEIDPROPERTYBROWSERTABTESTOBJECT_CLASSNAME, BROWSERTESTOBJECT_CLASSNAME, COLORDIALOGTESTOBJECT_CLASSNAME, CROSSDOMAINCONTAINER_CLASSNAME, DOCUMENTTESTOBJECT_CLASSNAME, DOMAINTESTOBJECT_CLASSNAME, ECLIPSETOPLEVELTESTOBJECT_CLASSNAME, EMBEDDEDBROWSERTESTOBJECT_CLASSNAME, FILEDIALOGTESTOBJECT_CLASSNAME, FRAMESUBITEMTESTOBJECT_CLASSNAME, FRAMETESTOBJECT_CLASSNAME, GEFEDITPARTTESTOBJECT_CLASSNAME, GUISUBITEMTESTOBJECT_CLASSNAME, GUITESTOBJECT_CLASSNAME, INTERNALFRAMETESTOBJECT_CLASSNAME, MESSAGEBOXTESTOBJECT_CLASSNAME, PALETTEGUISUBITEMTESTOBJECT_CLASSNAME, PROCESSTESTOBJECT_CLASSNAME, SCROLLSUBITEMTESTOBJECT_CLASSNAME, SCROLLTESTOBJECT_CLASSNAME, SELECTGUISUBITEMTESTOBJECT_CLASSNAME, SELECTSCROLLGUISUBITEMTESTOBJECT_CLASSNAME, SHELLTESTOBJECT_CLASSNAME, STATELESSGUISUBITEMTESTOBJECT_CLASSNAME, SUBITEMTESTOBJECT_CLASSNAME, TABITEMTESTOBJECT_CLASSNAME, TESTOBJECT_CLASSNAME, TEXTGUISUBITEMTESTOBJECT_CLASSNAME, TEXTGUITESTOBJECT_CLASSNAME, TEXTSCROLLTESTOBJECT_CLASSNAME, TEXTSELECTGUISUBITEMTESTOBJECT_CLASSNAME, TIMEOUTTESTOBJECT_CLASSNAME, TOGGLEGUITESTOBJECT_CLASSNAME, TOGGLETESTOBJECT_CLASSNAME, TOPLEVELSUBITEMTESTOBJECT_CLASSNAME, TOPLEVELTESTOBJECT_CLASSNAME, TRACKBARTESTOBJECT_CLASSNAME, vomClippedRectangleINPUTCHARS_METHOD, INPUTKEYS_METHOD| Constructor and Description |
|---|
HtmlBrowserProxy(HtmlTestDomainImplementation domain,
com.rational.test.ft.domain.IChannel channel,
long handle) |
HtmlBrowserProxy(HtmlTestDomainImplementation domain,
com.rational.test.ft.domain.IChannel channel,
long handle,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
back() |
boolean |
back(long handle) |
void |
close() |
void |
deleteAllCookies(long handle) |
void |
deleteCookies() |
void |
deleteCookies(long handle,
java.lang.String cookie,
boolean recursive) |
void |
deleteCookies(java.lang.String cookie,
boolean recursive) |
boolean |
exists() |
boolean |
forward() |
boolean |
forward(long handle) |
long |
getBrowserDocument(long nativeHandle) |
java.lang.Object |
getChildAtPoint(java.awt.Point pt)
Finds the most interesting child object at the specified point.
|
HtmlDocumentProxy |
getChildDocumentProxy() |
com.rational.test.ft.domain.ProxyTestObject[] |
getChildren()
Uses getChildrenEnumeration to implement.
|
com.rational.test.ft.domain.ProxyTestObject[] |
getChildren(com.rational.test.ft.sys.ContextObject contextProxy)
Uses getChildrenEnumeration to implement.
|
com.rational.test.ft.object.interfaces.IGraphical |
getClippingParent()
Get the clipping parent for this object.
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
HtmlDocumentProxy |
getDocument()
Return a Proxy to the Html top Document that is loaded in this browser.
|
com.rational.test.ft.domain.ProxyTestObject |
getElementWithFocus()
This method returns the element within a HTML browser (HTML dialogs included)
that has the input focus
|
long |
getFlexObjectHandle(java.lang.String playerId,
long serverExplorerHwnd) |
com.rational.test.ft.domain.ProxyTestObject[] |
getMappableChildren()
Uses getChildrenEnumeration to implement.
|
com.rational.test.ft.domain.ProxyTestObject[] |
getMappableChildren(com.rational.test.ft.sys.ContextObject contextProxy)
Uses getChildrenEnumeration to implement.
|
com.rational.test.ft.sys.MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt)
Return a MethodSpecification for a method that returns a java.awt.Point
for the specified coordinates.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property.
|
java.lang.Object |
getPropertyInternal(java.lang.String propertyName) |
com.rational.test.ft.script.ScriptCommandFlags |
getReadyState() |
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_HTML. |
java.lang.String |
getScreenSnapshot() |
com.rational.test.ft.sys.MethodSpecification |
getScriptCommandAnchor()
This method returns the method specification for a script commands anchor
attribute.
|
com.rational.test.ft.script.ScriptCommandFlags |
getScriptCommandFlags() |
java.lang.String |
getTestObjectClassName()
Returns the class name for the
TestObject. |
com.rational.test.ft.domain.ProxyTestObject |
getTopParent()
Returns a proxy object for the top parent of this object.
|
java.lang.String |
getUniqueId() |
com.rational.test.ft.sys.graphical.TopLevelWindow |
getWindow() |
boolean |
home() |
boolean |
home(long handle) |
boolean |
isPropertyOptimizable(com.rational.test.ft.vp.impl.Property property) |
boolean |
loadUrl(long handle,
java.lang.String url,
java.lang.String target) |
boolean |
loadUrl(java.lang.String url) |
boolean |
loadUrl(java.lang.String url,
java.lang.String target) |
void |
maximize() |
void |
minimize() |
void |
processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
void |
resize(int width,
int height) |
void |
restore() |
boolean |
setChildDocumentProxy(HtmlDocumentProxy docProxy) |
protected void |
setClassIndex()
Calculate and set the classindex for this object.
|
protected void |
setMethodSpecification(com.rational.test.ft.domain.IMouseActionInfo action,
java.lang.String method,
java.util.Vector args) |
protected void |
setMethodSpecification(com.rational.test.ft.domain.IMouseActionInfo action,
java.lang.String method,
java.util.Vector args,
com.rational.test.ft.script.ScriptCommandFlags flags) |
boolean |
shouldBeMapped()
Always returns
true, because browser objects must always be mapped. |
boolean |
suppressKeyAction()
Override of suppressKeyAction.
|
activate, clickDisabled, contextHelp, getOwner, inputChars, inputKeys, isIconified, isShowing, move, processBrowserPostUpMouseEvent, processBrowserPreDownMouseEvent, switchToactivateTopWindow, click, click, click, click, clickAtScreenPoint, clickWithMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouseN, convertFromScreenToOffset, doScroll, doubleClick, doubleClick, doubleClick, doubleClick, doubleClickAtScreenPoint, drag, drag, drag, drag, dragAtScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getActionArgs, getChildAtPoint, getChildAtPointN, getChildrenHandlesMatchingProperty, getClippedScreenRectangle, getClippingParentRectangle, getCurrentMethod, getDefaultActionArgs, getDefaultPointToClick, getDefaultPointToClick, getMappableDocument, getMethodName, getPointFromAction, getPointOnObject, getPointToClick, getScreenCenter, getScreenPoint, getScreenPoint, getScreenRectangle, getTargetChildHandles, getTargetChildItem, getTargetChildItem, getTargetChildItems, getVisualClippableParent, hasFocus, hover, hover, hover, hover, hoverAtScreenPoint, isEnabled, isInView, isInView, isOpaque, isPointInObject, isPointInObject, mouseMove, mouseMove, nClick, nClick, nClickAtScreenPoint, nClickDrag, nClickDragAtScreenPoint, nClickDragToScreenPoint, performAction, performClick, performClick, performDoubleClick, performSelect, performSetText, performWindowAction, processHoverMouseEvent, processPreDownMouseEvent, processPreUpMouseEvent, proxyGetChildAtPoint, restoreTopLevelWindow, scrollIntoView, scrollIntoView, scrollIntoView, scrollIntoViewN, scrollIntoViewWithDirection, scrollIntoViewWithDirectionN, setClickArgs, setCurrentMethod, setDownPointArgs, setDrag, setMultiClickAction, snapToRectangleaddAdditionalRecognitionProperties, addChildrenHandlesToVector, addChildrenToVector, addChildrenToVector, addDataDrivableCommands, addDojoDomain, addRecognitionProperty, adjustCustomDomains, calculateParentsTextDescendantsMayBecomeInteresting, callJqueryFind, clearAllSubdomains, clearCustomSubdomains, detach, disableAllHtmlCustomDomains, disableHtmlCustomDomain, disableHtmlCustomDomains, enableAllHtmlCustomDomains, enableHtmlCustomDomain, enableHtmlCustomDomains, equals, fetchProperties, filterProxiesBasedOnProps, find, findElementsByXpath, findElementsDirectly, findElementsViaQuery, findElementWithDynamicFind, findElementWithName, getAddedRecognitionProperty, getAddedRecognitionPropertyValue, getAddedRecognitionPropertyWeight, getBrowserAppVersion, getBrowserProcessId, getCachedData, getChannel, getChildren, getChildrenEnumeration, getChildrenEnumeration, getChildrenHandleEnumeration, getChildrenHandles, getChildrenN, getChildrenWithTagType, getClassIndex, getCustomClassProperty, getCustomClassPropertyValue, getCustomDomainName, getCustomDomainName, getCustomDomainName, getCustomDomainNameForChildren, getCustomDomainNameForParent, getCustomObject, getDataDrivableCommand, getDisabledProperty, getDocClassIndex, getDocument, getDocumentHandle, getDocumentWindow, getDocumentWindow, getDomain, getElementHandlesByTag, getElementObjectsByTag, getElementsByNameInProxyTestObjects, getElementsByTag, getElementsByTag, getElementsByTagEnumeration, getElementsByTagInProxyTestObjects, getElementsByTagN, getElementsByXpath, getElementsByXpath, getElementsByXpathEnumeration, getElementsDirectly, getHandle, getHtmlTag, getHtmlTagNameFromClassProperty, getIgnorableProperties, getIndexer, getIndexers, getInterestingRecogPropsForDynFind, getJsProps, getJswarapper, getMappableElementsByNameInProxyTestObjects, getMappableElementsByTagInProxyTestObjects, getMappableParent, getMappableParent, getMethods, getNonValueProperties, getObject, getObjectClassName, getOwnedObjects, getOwnedObjects, getParent, getParent, getParent, getParentN, getProperties, getProperties, getProperty, getPropertyInternalRunnable, getPropertyN, getProxyTestObjectsFromEnumeration, getReadOnlyProperty, getRecognitionProperties, getRecognitionPropertyWeight, getSavedDescriptiveName, getStandardProperties, getStandardProperties, getTestData, getTestDataTypes, getTestDomain, getText, getTopMappableParent, getTopParent, getTopParentInternal, getTopParentN, getValueProperty, getVisualTopParent, hasAddedRecognitionProperties, isClassIndexConsidered, isClassIndexPropertyAndValueDefined, isClassIndexSet, isContextObjectSet, isContextObjectSet, isDocClassIndexSet, isEqual, isFindOptimized, isObjectDead, isReleaseRequired, isSameObject, isScoreForFindBYIdorName, isValidRecognitionProperty, isXpathSupported, matches, release, release, release, release, release, release, releaseElementHandle, releaseN, replaceAll, restoreAllCustomSubDomains, restoreCustomSubDomains, setCachedData, setClass, setClassIndex, setClassIndex, setClassIndex, setClassIndex, setClassIndexOfChild, setCustomClassProperty, setCustomClassPropertyValue, setCustomDomainInContext, setDocClassIndex, setDocClassIndex, setDocClassIndex, setDocClassIndex, setDomain, setIndexer, setJswarapper, setProperty, setProperty, setSavedDescriptiveName, shouldDocumentBeAdded, split, updateTestDatabaseClassMatch, canTakeVP, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getDataDrivableCommands, getField, getObjectCustomClassName, getProxy, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isValidObject, pingaddProxyReference, dereference, getRegisteredId, getTransactionId, isReferenced, register, registerTransiently, toString, unregisterclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getClippedScreenRectangle, getScreenPoint, getScreenPoint, getScreenRectangle, hasFocus, hover, hover, hover, hover, isEnabled, isOpaque, isPointInObject, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPointpublic HtmlBrowserProxy(HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel, long handle, com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
public HtmlBrowserProxy(HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel, long handle)
public long getFlexObjectHandle(java.lang.String playerId,
long serverExplorerHwnd)
public boolean setChildDocumentProxy(HtmlDocumentProxy docProxy)
public HtmlDocumentProxy getChildDocumentProxy()
public com.rational.test.ft.domain.ProxyTestObject[] getChildren(com.rational.test.ft.sys.ContextObject contextProxy)
HtmlProxygetChildren in class HtmlProxypublic com.rational.test.ft.domain.ProxyTestObject[] getChildren()
getChildren in class HtmlProxypublic com.rational.test.ft.domain.ProxyTestObject[] getMappableChildren(com.rational.test.ft.sys.ContextObject contextProxy)
HtmlProxygetMappableChildren in class HtmlProxypublic com.rational.test.ft.domain.ProxyTestObject[] getMappableChildren()
HtmlProxygetMappableChildren in class HtmlProxypublic void processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
HtmlGuiProxyprocessMouseEvent in class TopLevelWindowProxyaction - The event cache and other mouse state information
for this mouse action.MethodSpecification,
HtmlGuiProxy.getActionArgs(java.awt.Point)public java.lang.String getTestObjectClassName()
TestObject. Browser objects are
top-level objects. This class will
be instantiated in the client.getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBasegetTestObjectClassName in class HtmlGuiProxypublic boolean shouldBeMapped()
true, because browser objects must always be mapped.shouldBeMapped in class HtmlProxypublic java.lang.String getDescriptiveName()
HtmlProxygetDescriptiveName in class HtmlProxypublic java.lang.String getRole()
TestObjectRole.ROLE_HTML.public java.lang.Object getProperty(java.lang.String propertyName)
HtmlProxygetProperty in class HtmlProxypublic com.rational.test.ft.domain.ProxyTestObject getTopParent()
HtmlProxygetTopParent in class HtmlProxypublic java.lang.Object getPropertyInternal(java.lang.String propertyName)
getPropertyInternal in class HtmlProxyprotected void setClassIndex()
HtmlProxysetClassIndex in class HtmlProxypublic java.lang.Object getChildAtPoint(java.awt.Point pt)
HtmlGuiProxy
If this object has no children, it should return null.
getChildAtPoint in interface com.rational.test.ft.object.interfaces.IGraphicalgetChildAtPoint in class HtmlGuiProxypt - Screen relative point to check.HtmlGuiProxy.getScreenRectangle()protected void setMethodSpecification(com.rational.test.ft.domain.IMouseActionInfo action,
java.lang.String method,
java.util.Vector args)
setMethodSpecification in class HtmlGuiProxyprotected void setMethodSpecification(com.rational.test.ft.domain.IMouseActionInfo action,
java.lang.String method,
java.util.Vector args,
com.rational.test.ft.script.ScriptCommandFlags flags)
setMethodSpecification in class HtmlGuiProxypublic com.rational.test.ft.sys.MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
HtmlProxyIGraphical.getScreenPoint will be returned. However, if a proxy can fingetMethodSpecForPoint in class HtmlGuiProxyMethodSpecificationpublic HtmlDocumentProxy getDocument()
getDocument in class HtmlProxypublic com.rational.test.ft.sys.graphical.TopLevelWindow getWindow()
getWindow in class TopLevelWindowProxypublic com.rational.test.ft.object.interfaces.IGraphical getClippingParent()
HtmlGuiProxygetClippingParent in class HtmlGuiProxypublic com.rational.test.ft.sys.MethodSpecification getScriptCommandAnchor()
getScriptCommandAnchor in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.script.ScriptCommandFlags getScriptCommandFlags()
getScriptCommandFlags in class TopLevelWindowProxypublic com.rational.test.ft.script.ScriptCommandFlags getReadyState()
public boolean back()
back in interface com.rational.test.ft.object.interfaces.IBrowserObjectpublic boolean forward()
forward in interface com.rational.test.ft.object.interfaces.IBrowserObjectpublic boolean home()
home in interface com.rational.test.ft.object.interfaces.IBrowserObjectpublic boolean loadUrl(java.lang.String url,
java.lang.String target)
loadUrl in interface com.rational.test.ft.object.interfaces.IBrowserObjectpublic boolean loadUrl(java.lang.String url)
loadUrl in interface com.rational.test.ft.object.interfaces.IBrowserObjectpublic void deleteCookies()
deleteCookies in interface com.rational.test.ft.object.interfaces.IBrowserObjectpublic void deleteCookies(java.lang.String cookie,
boolean recursive)
deleteCookies in interface com.rational.test.ft.object.interfaces.IBrowserObjectpublic boolean back(long handle)
public boolean forward(long handle)
public boolean home(long handle)
public boolean loadUrl(long handle,
java.lang.String url,
java.lang.String target)
public void deleteAllCookies(long handle)
public void deleteCookies(long handle,
java.lang.String cookie,
boolean recursive)
public long getBrowserDocument(long nativeHandle)
public com.rational.test.ft.domain.ProxyTestObject getElementWithFocus()
getElementWithFocus in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean suppressKeyAction()
suppressKeyAction in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean isPropertyOptimizable(com.rational.test.ft.vp.impl.Property property)
isPropertyOptimizable in interface com.rational.test.ft.domain.IQuickFindisPropertyOptimizable in class HtmlProxypublic java.lang.String getUniqueId()
getUniqueId in class HtmlProxypublic void close()
close in interface com.rational.test.ft.object.interfaces.IFrameclose in class TopLevelWindowProxypublic void maximize()
maximize in interface com.rational.test.ft.object.interfaces.IFramemaximize in class TopLevelWindowProxypublic void minimize()
minimize in interface com.rational.test.ft.object.interfaces.IFrameminimize in class TopLevelWindowProxypublic void restore()
restore in interface com.rational.test.ft.object.interfaces.IFramerestore in class TopLevelWindowProxypublic void resize(int width,
int height)
resize in interface com.rational.test.ft.object.interfaces.IFrameresize in class TopLevelWindowProxypublic java.lang.String getScreenSnapshot()
getScreenSnapshot in class HtmlGuiProxy