public class DojoGridProxy extends DojoContainerProxy
Modifier and Type | Class and Description |
---|---|
protected class |
DojoGridProxy.DojoGridRowEnumeration |
protected class |
DojoGridProxy.JsDojoGridRowEnumeration |
DojoContainerProxy.DojoHtmlElementEnumeration
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
defaultRecognitionProperty, DISPLAYPROPERTY, subDomain
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 |
---|
DojoGridProxy(HtmlTestDomainImplementation domain,
IChannel channel,
long handle) |
DojoGridProxy(HtmlTestDomainImplementation domain,
IChannel channel,
long handle,
IBrowserCommunicator jswrap) |
Modifier and Type | Method and Description |
---|---|
void |
click(MouseModifiers modifiers,
Subitem subitem) |
void |
click(Subitem subitem) |
void |
doubleClick(MouseModifiers modifiers,
Subitem subitem) |
void |
doubleClick(Subitem subitem) |
long |
getChildAtPoint(long handle,
int x,
int y) |
java.util.Enumeration |
getChildrenEnumeration()
Enumerate child objects of the Html Element.
|
java.util.Enumeration |
getChildrenEnumerations()
Enumerate child objects of the Html Element.
|
java.lang.String |
getClearscriptSimpleName() |
static long |
getControlHandle(HtmlProxy proxy) |
static HtmlProxy |
getCustomProxy(HtmlProxy defaultProxy,
HtmlTestDomainImplementation domain,
IChannel channel,
IBrowserCommunicator jswrap) |
DojoGridCellProxy |
getDataCell(java.awt.Point pt)
Returns a DojoGridCellProxy object at the specified screen point.
|
DojoGridCellProxy |
getDataCell(Subitem subitem)
Get the DojoGridCellProxy object identified by the Subitem.
|
MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support
data driving.
|
long |
getDojoGrid(HtmlProxy proxy,
long handle) |
int |
getIndexOfColumn(java.lang.String columnName) |
ProxyTestObject[] |
getMappableChildren()
Uses getChildrenEnumeration to implement.
|
java.lang.Object |
getPropertyInternal(java.lang.String propertyName)
Get the value for a specific property, internal use.
|
java.util.Hashtable |
getRecognitionProperties()
Returns an enumeration of properties used to uniquely identify the
associated test object in the SUT.
|
int |
getRecognitionPropertyWeight(java.lang.String propertyName)
Returns an indication of how useful this property is for recognition.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_GRID . |
java.awt.Point |
getScreenPoint(DojoGridCellProxy subObject) |
java.lang.Object |
getSubitem(Subitem subitem) |
DojoGridCellProxy |
getSubobject(Subitem subitem) |
ITestData |
getTestData(java.lang.String testDataType)
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.
|
java.lang.String |
getTestObjectClassName()
The default GUI marshaller is returned.
|
boolean |
isInView(DojoGridCellProxy subObject) |
static boolean |
isOfMyType(HtmlProxy proxy) |
protected void |
processPreDownMouseEvent(IMouseActionInfo action)
This method is called to process a mouse event in the IMouseActionInfo.PRE_DOWN event state.
|
protected void |
processPreUpMouseEvent(IMouseActionInfo action,
int clicks,
boolean isDrag)
This method is called to process a mouse event, IMouseActionInfo.PRE_UP event state
On PRE_UP build a new method specification which will override
the one recorded on the PRE_DOWN.
|
void |
scroll(java.awt.Point fromPt,
java.awt.Point toPt) |
protected java.util.Vector |
setDrag(IMouseActionInfo action,
int modifiers,
java.awt.Point firstPoint,
java.awt.Point nthPoint)
Set args and method for single click drag
|
boolean |
shouldBeMapped()
Always returns
false , because DOJO Containers are not interesting. |
isContentPane, isDisplayed, isLayoutContainer, processMouseEvent, setSizerPosition, setSizerPosition
calculateParentsTextDescendantsMayBecomeInteresting, getAncestorAtLevel, getAncestorHandleMatchingByPropertyNames, getAncestorHandleMatchingProperty, getAncestorHandleMatchingProperty, getAncestorHandleMatchingProperty, getAncestorHandleMatchingProperty, getHtmlChildren, getHtmlParent, getObjectCustomClassName, getProperty, getSubDomain, getVisibleTextProperty, isEnabled, isVisible, setClickArgs, setDownPointArgs, setMethodSpecification, setMethodSpecification, setSubDomain
activateTopWindow, click, clickAtScreenPoint, clickWithMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouseN, convertFromScreenToOffset, doScroll, doubleClick, doubleClickAtScreenPoint, drag, drag, drag, drag, dragAtScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getActionArgs, getChildAtPoint, getChildAtPointN, getChildrenHandlesMatchingProperty, getClippedScreenRectangle, getClippingParent, getClippingParentRectangle, getCurrentMethod, getDefaultActionArgs, getDefaultPointToClick, getDefaultPointToClick, getMethodName, getMethodSpecForPoint, getPointFromAction, getPointOnObject, getPointToClick, getScreenCenter, getScreenPoint, getScreenPoint, getScreenRectangle, getTargetChildHandles, getTargetChildItem, getTargetChildItem, getTargetChildItems, 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, processHoverMouseEvent, proxyGetChildAtPoint, restoreTopLevelWindow, scrollIntoView, scrollIntoView, scrollIntoView, scrollIntoViewN, scrollIntoViewWithDirection, scrollIntoViewWithDirectionN, setClickArgs, setCurrentMethod, setDownPointArgs, setMethodSpecification, setMethodSpecification, setMultiClickAction, snapToRectangle
addAdditionalRecognitionProperties, addChildrenHandlesToVector, addChildrenToVector, addChildrenToVector, addDataDrivableCommands, addDojoDomain, addRecognitionProperty, adjustCustomDomains, callJqueryFind, clearAllSubdomains, clearCustomSubdomains, detach, disableAllHtmlCustomDomains, disableHtmlCustomDomain, disableHtmlCustomDomains, enableAllHtmlCustomDomains, enableHtmlCustomDomain, enableHtmlCustomDomains, equals, fetchProperties, find, findElementsByXpath, findElementsDirectly, findElementsViaQuery, findElementWithDynamicFind, findElementWithName, getAddedRecognitionProperty, getAddedRecognitionPropertyValue, getAddedRecognitionPropertyWeight, getBrowserAppVersion, getCachedData, getChannel, getChildren, getChildren, getChildren, getChildrenEnumeration, getChildrenHandleEnumeration, getChildrenHandles, getChildrenN, getChildrenWithTagType, getClassIndex, getCustomClassProperty, getCustomClassPropertyValue, getCustomDomainName, getCustomDomainName, getCustomDomainName, getCustomDomainNameForChildren, getCustomDomainNameForParent, getCustomObject, getDescriptiveName, getDisabledProperty, getDocClassIndex, getDocument, 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, getMappableChildren, getMappableElementsByNameInProxyTestObjects, getMappableElementsByTagInProxyTestObjects, getMappableParent, getMappableParent, getMethods, getNonValueProperties, getObject, getObjectClassName, getOwnedObjects, getOwnedObjects, getOwner, getParent, getParent, getParentN, getProperties, getProperties, getProperty, getPropertyInternalRunnable, getPropertyN, getProxyTestObjectsFromEnumeration, getReadOnlyProperty, 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, updateTestData
baseClassMatch, canTakeVP, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getDataDrivableCommands, getElementWithFocus, getField, getProxy, getScriptCommandAnchor, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isValidObject, ping, suppressKeyAction
public DojoGridProxy(HtmlTestDomainImplementation domain, IChannel channel, long handle, IBrowserCommunicator jswrap)
public DojoGridProxy(HtmlTestDomainImplementation domain, IChannel channel, long handle)
public static HtmlProxy getCustomProxy(HtmlProxy defaultProxy, HtmlTestDomainImplementation domain, IChannel channel, IBrowserCommunicator jswrap)
public static long getControlHandle(HtmlProxy proxy)
public java.lang.String getRole()
TestObjectRole.ROLE_GRID
.getRole
in class DojoContainerProxy
public static boolean isOfMyType(HtmlProxy proxy)
public long getDojoGrid(HtmlProxy proxy, long handle)
public boolean shouldBeMapped()
DojoContainerProxy
false
, because DOJO Containers are not interesting.shouldBeMapped
in class DojoContainerProxy
false
public java.lang.String getTestObjectClassName()
HtmlProxy
getTestObjectClassName
in interface IProxyBase
getTestObjectClassName
in class DojoContainerProxy
public java.util.Hashtable getRecognitionProperties()
getRecognitionProperties
in class HtmlProxy
ProxyTestObject.getRecognitionPropertyWeight(String)
,
ProxyTestObject.getProperty(String)
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
public int getRecognitionPropertyWeight(java.lang.String propertyName)
getRecognitionPropertyWeight
in class HtmlProxy
propertyName
- The name of the recognition property to
return a weight value for.ProxyTestObject.getRecognitionProperties()
public MethodSpecification getDataDrivableCommand()
null
value is returned.getDataDrivableCommand
in interface IDataDriven
getDataDrivableCommand
in class HtmlProxy
ProxyTestObject.getDataDrivableCommands(int)
public java.util.Hashtable getTestDataTypes()
getTestDataTypes
in class HtmlProxy
getTestData(String)
,
ITestData
public ITestData getTestData(java.lang.String testDataType)
getTestDataTypes
.getTestData
in class HtmlProxy
testDataType
- A test data type supplied by
getTestDataTypes
.getTestDataTypes()
,
ITestData
public java.lang.Object getPropertyInternal(java.lang.String propertyName)
getPropertyInternal
in class HtmlProxy
protected void processPreDownMouseEvent(IMouseActionInfo action)
processPreDownMouseEvent
in class DojoContainerProxy
protected java.util.Vector setDrag(IMouseActionInfo action, int modifiers, java.awt.Point firstPoint, java.awt.Point nthPoint)
setDrag
in class HtmlGuiProxy
protected void processPreUpMouseEvent(IMouseActionInfo action, int clicks, boolean isDrag)
processPreUpMouseEvent
in class HtmlGuiProxy
public DojoGridCellProxy getDataCell(java.awt.Point pt)
pt
- The screen point as which to look for a TH or TD element.public DojoGridCellProxy getSubobject(Subitem subitem)
public java.lang.Object getSubitem(Subitem subitem)
public DojoGridCellProxy getDataCell(Subitem subitem)
subitem
- Subclass of Subitem which identifies a specific cell in the Grid.public int getIndexOfColumn(java.lang.String columnName)
public java.awt.Point getScreenPoint(DojoGridCellProxy subObject)
public boolean isInView(DojoGridCellProxy subObject)
public void click(Subitem subitem)
click
in class HtmlGuiProxy
public void click(MouseModifiers modifiers, Subitem subitem)
click
in class HtmlGuiProxy
public void doubleClick(Subitem subitem)
doubleClick
in class HtmlGuiProxy
public void doubleClick(MouseModifiers modifiers, Subitem subitem)
doubleClick
in class HtmlGuiProxy
public void scroll(java.awt.Point fromPt, java.awt.Point toPt)
public long getChildAtPoint(long handle, int x, int y)
getChildAtPoint
in class HtmlGuiProxy
public java.util.Enumeration getChildrenEnumerations()
public java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration
in class DojoContainerProxy
public ProxyTestObject[] getMappableChildren()
DojoContainerProxy
getMappableChildren
in class DojoContainerProxy
public java.lang.String getClearscriptSimpleName()