public class HtmlBrowserProxy extends TopLevelWindowProxy
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.KeyEmiter
HtmlGuiProxy.Clicker, HtmlGuiProxy.DoubleClicker, HtmlGuiProxy.Dragger, HtmlGuiProxy.Hoverer, HtmlGuiProxy.nClickDragger, HtmlGuiProxy.nClicker, HtmlGuiProxy.PointIterator
HtmlProxy.GetObjectRunnable, HtmlProxy.HtmlElementEnumeration, HtmlProxy.IntegerByReference, HtmlProxy.InvalidNativeHandleException, HtmlProxy.JSObjectHtmlElementEnumeration, HtmlProxy.NativeProxyReleasedException
currentMethod, LEFT, OFFSETHEIGHTPROPERTY, OFFSETLEFTPROPERTY, OFFSETRECTPROPERTY, OFFSETTOPPROPERTY, OFFSETWIDTHPROPERTY
BOUNDSPROPERTY, channel, CLASSINDEX, CLASSPROPERTY, CLIENTRECTPROPERTY, debug, DISABLEDPROPERTY, DOCCLASSINDEX, dojoProps, domain, HTMLPROXYCHANNELRUNNABLE_TIMEOUTVALUE, IDPROPERTY, isSiebelActive, jswarapper, NAMEPROPERTY, parentsTextDescendantsMayBeInteresting, READONLYPROPERTY, TAGPROPERTY, TESTDATA_TEXT, TEXTPROPERTY, TITLEPROPERTY, UNIQUEIDPROPERTY
BROWSERTABTESTOBJECT_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, vomClippedRectangle
CUSTOM_DOMAIN_LIST, DOJO_CUSTOM_DOMAIN_NAME, SAPWEBPORTAL_CUSTOM_DOMAIN_NAME
INCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS
Constructor and Description |
---|
HtmlBrowserProxy(HtmlTestDomainImplementation domain,
IChannel channel,
long handle) |
HtmlBrowserProxy(HtmlTestDomainImplementation domain,
IChannel channel,
long handle,
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 |
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() |
ProxyTestObject[] |
getChildren()
Uses getChildrenEnumeration to implement.
|
ProxyTestObject[] |
getChildren(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.
|
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) |
ProxyTestObject[] |
getMappableChildren()
Uses getChildrenEnumeration to implement.
|
ProxyTestObject[] |
getMappableChildren(ContextObject contextProxy)
Uses getChildrenEnumeration to implement.
|
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) |
ScriptCommandFlags |
getReadyState() |
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_HTML . |
MethodSpecification |
getScriptCommandAnchor()
This method returns the method specification for a script commands anchor
attribute.
|
ScriptCommandFlags |
getScriptCommandFlags()
This method returns an active state value that reflects the state of the
test object at the time of the call.
|
java.lang.String |
getTestObjectClassName()
Returns the class name for the
TestObject . |
ProxyTestObject |
getTopParent()
Returns a proxy object for the top parent of this object.
|
java.lang.String |
getUniqueId()
Returns a string for the associated object.
|
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 |
processMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
boolean |
setChildDocumentProxy(HtmlDocumentProxy docProxy) |
protected void |
setClassIndex()
Calculate and set the classindex for this object.
|
protected void |
setMethodSpecification(IMouseActionInfo action,
java.lang.String method,
java.util.Vector args) |
protected void |
setMethodSpecification(IMouseActionInfo action,
java.lang.String method,
java.util.Vector args,
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, maximize, minimize, move, processBrowserPostUpMouseEvent, processBrowserPreDownMouseEvent, resize, restore
activateTopWindow, click, click, click, clickAtScreenPoint, clickWithMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouseN, convertFromScreenToOffset, doScroll, doubleClick, doubleClick, doubleClick, doubleClickAtScreenPoint, drag, drag, drag, drag, dragAtScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getActionArgs, getChildAtPoint, getChildAtPointN, getChildrenHandlesMatchingProperty, getClippedScreenRectangle, getClippingParentRectangle, getCurrentMethod, getDefaultActionArgs, getDefaultPointToClick, getDefaultPointToClick, 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, processHoverMouseEvent, processPreDownMouseEvent, processPreUpMouseEvent, proxyGetChildAtPoint, restoreTopLevelWindow, scrollIntoView, scrollIntoView, scrollIntoView, scrollIntoViewN, scrollIntoViewWithDirection, scrollIntoViewWithDirectionN, setClickArgs, setCurrentMethod, setDownPointArgs, setDrag, setMultiClickAction, snapToRectangle
addAdditionalRecognitionProperties, addChildrenHandlesToVector, addChildrenToVector, addChildrenToVector, addDataDrivableCommands, addDojoDomain, addRecognitionProperty, adjustCustomDomains, calculateParentsTextDescendantsMayBecomeInteresting, callJqueryFind, clearAllSubdomains, clearCustomSubdomains, detach, disableAllHtmlCustomDomains, disableHtmlCustomDomain, disableHtmlCustomDomains, enableAllHtmlCustomDomains, enableHtmlCustomDomain, enableHtmlCustomDomains, equals, fetchProperties, find, findElementsByXpath, findElementsDirectly, findElementsViaQuery, findElementWithDynamicFind, findElementWithName, getAddedRecognitionProperty, getAddedRecognitionPropertyValue, getAddedRecognitionPropertyWeight, getBrowserAppVersion, getCachedData, getChannel, getChildrenEnumeration, getChildrenEnumeration, getChildrenHandleEnumeration, getChildrenHandles, getChildrenN, getChildrenWithTagType, getClassIndex, getCustomClassProperty, getCustomClassPropertyValue, getCustomDomainName, getCustomDomainName, getCustomDomainName, getCustomDomainNameForChildren, getCustomDomainNameForParent, getCustomObject, getDataDrivableCommand, getDisabledProperty, getDocClassIndex, getDocument, getDocumentHandle, 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, 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, updateTestData
baseClassMatch, canTakeVP, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getDataDrivableCommands, getField, getObjectCustomClassName, getProxy, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isValidObject, ping
public HtmlBrowserProxy(HtmlTestDomainImplementation domain, IChannel channel, long handle, IBrowserCommunicator jswrap)
public HtmlBrowserProxy(HtmlTestDomainImplementation domain, IChannel channel, long handle)
public long getFlexObjectHandle(java.lang.String playerId, long serverExplorerHwnd)
public boolean setChildDocumentProxy(HtmlDocumentProxy docProxy)
public HtmlDocumentProxy getChildDocumentProxy()
public ProxyTestObject[] getChildren(ContextObject contextProxy)
HtmlProxy
getChildren
in class HtmlProxy
contextProxy
- The contextProxy Test object is to set the
context while finding the childrenpublic ProxyTestObject[] getChildren()
getChildren
in class HtmlProxy
public ProxyTestObject[] getMappableChildren(ContextObject contextProxy)
HtmlProxy
getMappableChildren
in class HtmlProxy
public ProxyTestObject[] getMappableChildren()
HtmlProxy
getMappableChildren
in class HtmlProxy
public void processMouseEvent(IMouseActionInfo action)
HtmlGuiProxy
processMouseEvent
in class TopLevelWindowProxy
action
- 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 IProxyBase
getTestObjectClassName
in class HtmlGuiProxy
public boolean shouldBeMapped()
true
, because browser objects must always be mapped.shouldBeMapped
in class HtmlProxy
public java.lang.String getDescriptiveName()
HtmlProxy
getDescriptiveName
in class HtmlProxy
public java.lang.String getRole()
TestObjectRole.ROLE_HTML
.public java.lang.Object getProperty(java.lang.String propertyName)
HtmlProxy
getProperty
in class HtmlProxy
propertyName
- The name of the property to fetch.ProxyTestObject.getProperties()
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getRecognitionProperties()
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
public ProxyTestObject getTopParent()
HtmlProxy
getTopParent
in class HtmlProxy
public java.lang.Object getPropertyInternal(java.lang.String propertyName)
getPropertyInternal
in class HtmlProxy
protected void setClassIndex()
HtmlProxy
setClassIndex
in class HtmlProxy
public java.lang.Object getChildAtPoint(java.awt.Point pt)
HtmlGuiProxy
If this object has no children, it should return null
.
getChildAtPoint
in class HtmlGuiProxy
pt
- Screen relative point to check.HtmlGuiProxy.getScreenRectangle()
protected void setMethodSpecification(IMouseActionInfo action, java.lang.String method, java.util.Vector args)
setMethodSpecification
in class HtmlGuiProxy
protected void setMethodSpecification(IMouseActionInfo action, java.lang.String method, java.util.Vector args, ScriptCommandFlags flags)
setMethodSpecification
in class HtmlGuiProxy
public MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
HtmlProxy
IGraphical.getScreenPoint
will be returned. However, if a proxy can fingetMethodSpecForPoint
in class HtmlGuiProxy
MethodSpecification
public HtmlDocumentProxy getDocument()
getDocument
in class HtmlProxy
public TopLevelWindow getWindow()
getWindow
in class TopLevelWindowProxy
public com.rational.test.ft.object.interfaces.IGraphical getClippingParent()
HtmlGuiProxy
getClippingParent
in class HtmlGuiProxy
public MethodSpecification getScriptCommandAnchor()
getScriptCommandAnchor
in class ProxyTestObject
public ScriptCommandFlags getScriptCommandFlags()
ProxyTestObject
getScriptCommandFlags
in class TopLevelWindowProxy
public ScriptCommandFlags getReadyState()
public boolean back()
public boolean forward()
public boolean home()
public boolean loadUrl(java.lang.String url, java.lang.String target)
public boolean loadUrl(java.lang.String url)
public void deleteCookies()
public void deleteCookies(java.lang.String cookie, boolean recursive)
public 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 ProxyTestObject getElementWithFocus()
getElementWithFocus
in class ProxyTestObject
public boolean suppressKeyAction()
suppressKeyAction
in class ProxyTestObject
true
for a top-level proxy that wants to suppress the
generation of inputKeys
method calls.public boolean isPropertyOptimizable(com.rational.test.ft.vp.impl.Property property)
isPropertyOptimizable
in interface IQuickFind
isPropertyOptimizable
in class HtmlProxy
public java.lang.String getUniqueId()
ProxyTestObject
getUniqueId
in class HtmlProxy
public void close()
close
in class TopLevelWindowProxy