public class DojoMenuItemProxy extends GenericMenuItemProxy
HtmlGuiProxy.Clicker, HtmlGuiProxy.DoubleClicker, HtmlGuiProxy.Dragger, HtmlGuiProxy.Hoverer, HtmlGuiProxy.nClickDragger, HtmlGuiProxy.nClicker, HtmlGuiProxy.PointIteratorHtmlProxy.GetObjectRunnable, HtmlProxy.HtmlElementEnumeration, HtmlProxy.IntegerByReference, HtmlProxy.InvalidNativeHandleException, HtmlProxy.JSObjectHtmlElementEnumeration, HtmlProxy.NativeProxyReleasedException| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
label |
defaultRecognitionProperty, DISPLAYPROPERTY, subDomainCOLON, COMMA, currentMethod, ESC_DBLQUOTE, GETSCREENSNAPSHOT, IS_WEB_PLAYER, JSON_CLOSE_BRACE, JSON_OPEN_BRACE, 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, vomClippedRectangle| Constructor and Description |
|---|
DojoMenuItemProxy(HtmlTestDomainImplementation domain,
com.rational.test.ft.domain.IChannel channel,
long handle) |
DojoMenuItemProxy(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 |
|---|---|
protected java.util.Vector |
getActionArgs() |
java.lang.Object |
getChildAtPoint(java.awt.Point pt)
Finds the most interesting child object at the specified point.
|
com.rational.test.ft.domain.ProxyTestObject[] |
getChildren()
Uses getChildrenEnumeration to implement.
|
static HtmlProxy |
getCustomProxy(HtmlProxy defaultProxy,
HtmlTestDomainImplementation domain,
com.rational.test.ft.domain.IChannel channel,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap) |
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
static long |
getDojoMenuItem(HtmlProxy proxy) |
protected DojoMenuProxy |
getDojoRootMenu() |
com.rational.test.ft.vp.ITestDataTreeNode |
getHierarchy() |
java.lang.String |
getLabel() |
com.rational.test.ft.domain.ProxyTestObject[] |
getMappableChildren()
Uses getChildrenEnumeration to implement.
|
com.rational.test.ft.domain.ProxyTestObject |
getMappableParent()
Walks the
HtmlProxy.getParent() relationship until a mappable parent is encountered. |
com.rational.test.ft.domain.ProxyTestObject |
getParent()
Returns null always because object relationships are not
understood at this level of abstaction.
|
long |
getParentHandle(long handle) |
DojoMenuProxy |
getParentMenu() |
int |
getState() |
com.rational.test.ft.vp.ITestData |
getTestData(java.lang.String type)
This method constructs the specified verification data object.
|
java.util.Hashtable |
getTestDataTypes()
Returns a hashtable of data type descriptions of the verification
point data available with the associated object in the SUT.
|
void |
processHoverMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action) |
void |
processPreDownMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action) |
protected java.util.Vector |
setClickArgs(int modifiers,
java.util.Vector clickArgs)
Set args for click
(depends on clickArgs member variable set by getActionArgs in PRE_DOWN)
|
protected java.util.Vector |
setDownPointArgs(int modifiers,
java.util.Vector clickArgs) |
getRolecalculateParentsTextDescendantsMayBecomeInteresting, getAncestorAtLevel, getAncestorHandleMatchingByPropertyNames, getAncestorHandleMatchingProperty, getAncestorHandleMatchingProperty, getAncestorHandleMatchingProperty, getAncestorHandleMatchingProperty, getHtmlChildren, getHtmlParent, getObjectCustomClassName, getProperty, getSubDomain, getVisibleTextProperty, isEnabled, isVisible, setMethodSpecification, setMethodSpecification, setSubDomain, shouldBeMappedactivateTopWindow, 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, getClippingParent, getClippingParentRectangle, getCurrentMethod, getDefaultActionArgs, getDefaultPointToClick, getDefaultPointToClick, getMappableDocument, getMethodName, getMethodSpecForPoint, getPointFromAction, getPointOnObject, getPointToClick, getScreenCenter, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getTargetChildHandles, getTargetChildItem, getTargetChildItem, getTargetChildItems, getTestObjectClassName, getVisualClippableParent, hasFocus, hover, hover, hover, hover, hoverAtScreenPoint, isInView, isInView, isOpaque, isPointInObject, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClick, nClickAtScreenPoint, nClickDrag, nClickDragAtScreenPoint, nClickDragToScreenPoint, performAction, performClick, performClick, performDoubleClick, performSelect, performSetText, performWindowAction, processMouseEvent, processPreUpMouseEvent, proxyGetChildAtPoint, restoreTopLevelWindow, scrollIntoView, scrollIntoView, scrollIntoView, scrollIntoViewN, scrollIntoViewWithDirection, scrollIntoViewWithDirectionN, setClickArgs, setCurrentMethod, setDownPointArgs, setDrag, setMethodSpecification, setMethodSpecification, setMultiClickAction, snapToRectangleaddAdditionalRecognitionProperties, addChildrenHandlesToVector, addChildrenToVector, addChildrenToVector, addDataDrivableCommands, addDojoDomain, addRecognitionProperty, adjustCustomDomains, callJqueryFind, clearAllSubdomains, clearCustomSubdomains, detach, disableAllHtmlCustomDomains, disableHtmlCustomDomain, disableHtmlCustomDomains, enableAllHtmlCustomDomains, enableHtmlCustomDomain, enableHtmlCustomDomains, equals, exists, fetchProperties, filterProxiesBasedOnProps, find, findElementsByXpath, findElementsDirectly, findElementsViaQuery, findElementWithDynamicFind, findElementWithName, getAddedRecognitionProperty, getAddedRecognitionPropertyValue, getAddedRecognitionPropertyWeight, getBrowserAppVersion, getBrowserProcessId, getCachedData, getChannel, getChildren, getChildren, getChildrenEnumeration, getChildrenEnumeration, getChildrenHandleEnumeration, getChildrenHandles, getChildrenN, getChildrenWithTagType, getClassIndex, getCustomClassProperty, getCustomClassPropertyValue, getCustomDomainName, getCustomDomainName, getCustomDomainName, getCustomDomainNameForChildren, getCustomDomainNameForParent, getCustomObject, getDataDrivableCommand, getDisabledProperty, getDocClassIndex, getDocument, 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, getMappableChildren, getMappableElementsByNameInProxyTestObjects, getMappableElementsByTagInProxyTestObjects, getMappableParent, getMethods, getNonValueProperties, getObject, getObjectClassName, getOwnedObjects, getOwnedObjects, getOwner, getParent, getParent, getParentN, getProperties, getProperties, getProperty, getPropertyInternal, getPropertyInternalRunnable, getPropertyN, getProxyTestObjectsFromEnumeration, getReadOnlyProperty, getRecognitionProperties, getRecognitionPropertyWeight, getSavedDescriptiveName, getScriptCommandFlags, getStandardProperties, getStandardProperties, getTestDomain, getText, getTopMappableParent, getTopParent, getTopParent, getTopParentInternal, getTopParentN, getUniqueId, getValueProperty, getVisualTopParent, hasAddedRecognitionProperties, isClassIndexConsidered, isClassIndexPropertyAndValueDefined, isClassIndexSet, isContextObjectSet, isContextObjectSet, isDocClassIndexSet, isEqual, isFindOptimized, isObjectDead, isPropertyOptimizable, isReleaseRequired, isSameObject, isScoreForFindBYIdorName, isValidRecognitionProperty, isXpathSupported, matches, release, release, release, release, release, release, releaseElementHandle, releaseN, replaceAll, restoreAllCustomSubDomains, restoreCustomSubDomains, setCachedData, setClass, setClassIndex, 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, getElementWithFocus, getField, getProxy, getScriptCommandAnchor, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isValidObject, ping, suppressKeyActionpublic DojoMenuItemProxy(HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel, long handle, com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
public DojoMenuItemProxy(HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel, long handle)
public static HtmlProxy getCustomProxy(HtmlProxy defaultProxy, HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel, com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
public static long getDojoMenuItem(HtmlProxy proxy)
public com.rational.test.ft.domain.ProxyTestObject getMappableParent()
HtmlProxyHtmlProxy.getParent() relationship until a mappable parent is encountered.getMappableParent 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 GenericMenuItemProxypt - Screen relative point to check.HtmlGuiProxy.getScreenRectangle()protected DojoMenuProxy getDojoRootMenu()
public java.lang.String getLabel()
public java.lang.String getDescriptiveName()
HtmlProxygetDescriptiveName in class HtmlProxypublic com.rational.test.ft.domain.ProxyTestObject[] getMappableChildren()
HtmlProxygetMappableChildren in class GenericMenuItemProxypublic com.rational.test.ft.domain.ProxyTestObject[] getChildren()
HtmlProxygetChildren in class HtmlProxypublic com.rational.test.ft.domain.ProxyTestObject getParent()
public long getParentHandle(long handle)
public DojoMenuProxy getParentMenu()
public int getState()
public void processPreDownMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processPreDownMouseEvent in class HtmlGuiProxypublic void processHoverMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processHoverMouseEvent in class HtmlGuiProxyprotected java.util.Vector setClickArgs(int modifiers,
java.util.Vector clickArgs)
setClickArgs in class GenericHtmlGuiProxyprotected java.util.Vector setDownPointArgs(int modifiers,
java.util.Vector clickArgs)
setDownPointArgs in class GenericHtmlGuiProxyprotected java.util.Vector getActionArgs()
public java.util.Hashtable getTestDataTypes()
HtmlProxygetTestDataTypes in class HtmlProxyHtmlProxy.getTestData(String),
ITestDatapublic com.rational.test.ft.vp.ITestData getTestData(java.lang.String type)
HtmlProxygetTestDataTypes.getTestData in class HtmlProxytype - A test data type supplied by
getTestDataTypes.HtmlProxy.getTestDataTypes(),
ITestDatapublic com.rational.test.ft.vp.ITestDataTreeNode getHierarchy()