public class ImageProxy extends ElementProxy implements IHtmlGraphicalSubitem
StatelessGuiSubitemTestObject
| Type | Desciption | |
|---|---|---|
| text | Visible Text | ITestDataText |
| Subitem | Usage |
|---|---|
| Area | Area |
| Property | Usage |
|---|---|
| .align | This is the value of the align attribute of the element. Valid values are bottom, middle, and top. |
| .alt | The value of the alt attribute an element. This is the "alternate" text for the element, frequently displayed by the browser when the mouse hovers over the element. |
| .border | This is the value of the border attribute of the element. Returns the number of pixels. |
| .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. |
| .className | This the value of the class attribute of an element |
| .hasScript | This value is returned as a boolean. If true then script as been associated with actions on this element. |
| .height | The value of the height attribute of an element. For an Image element this is the display height in pixels for the image. |
| .hspace | The value of the hspace attribute of an element, the amount of whitespace inserted to the left or right of an IMG, OBJECT, or APPLET. |
| .id | This is the value of the id attribute of an element. |
| .isMap | The value of the isMap attribute of an element returned as a boolean. For Image elements (IMG) if this is TRUE then this indicates a server side image map. |
| .name | This is the value of the name attribute (Form elements and Frames only) |
| .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. |
| .screenLeft | Upper left corner of bounding rectangle in screen coordinates, x component. |
| .screenTop | Upper left corner of bounding rectangle in screen coordinates, y component. |
| .src | This is the value of the src attribute for the element. For images and image buttons this is a URL specifying the desired image file. |
| .tag | This is the Html tag for the element |
| .text | This is the text inside of the HTML tags for bounding the
element. For example, <A>This is an Anchor<IMG src=map.gif></a>
the text property will return "This is an
Anchor. All white space are combined and reduced to a single a
blank character if consecutive white space characters are found. |
| .title | This is the value of the title attribute of an element. This is frequently the text displayed when hovering over the element with the mouse. |
| .useMap | The value of the usemap attribute of an element. The value is a string specifying a URL and is used for Image elements (IMG) to indicate a client side image map. The URL points to the map associated MAP. Frequently, this is a document relative reference. |
| .vspace | The value of the vspace attribute of an element, the amount of whitespace inserted to the above or below of an IMG, OBJECT, or APPLET. |
| .width | The value of the width attribute of an element. For an Image element this is the display width in pixels for the image. |
HtmlGuiProxy.Clicker, HtmlGuiProxy.DoubleClicker, HtmlGuiProxy.Dragger, HtmlGuiProxy.Hoverer, HtmlGuiProxy.nClickDragger, HtmlGuiProxy.nClicker, HtmlGuiProxy.PointIteratorHtmlProxy.GetObjectRunnable, HtmlProxy.HtmlElementEnumeration, HtmlProxy.IntegerByReference, HtmlProxy.InvalidNativeHandleException, HtmlProxy.JSObjectHtmlElementEnumeration, HtmlProxy.NativeProxyReleasedExceptionTESTDATA_SUBMITcurrentMethod, LEFT, MAXIMIZE, OFFSETHEIGHTPROPERTY, OFFSETLEFTPROPERTY, OFFSETRECTPROPERTY, OFFSETTOPPROPERTY, OFFSETWIDTHPROPERTY, RESTOREBODYTAG, BOUNDSPROPERTY, channel, CLASSINDEX, CLASSPROPERTY, CLIENTRECTPROPERTY, debug, DISABLEDPROPERTY, DOCCLASSINDEX, dojoProps, domain, HTMLPROXYCHANNELRUNNABLE_TIMEOUTVALUE, IDPROPERTY, isSiebelActive, jswarapper, NAMEPROPERTY, 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, vomClippedRectangleCUSTOM_DOMAIN_LIST, DOJO_CUSTOM_DOMAIN_NAME, SAPWEBPORTAL_CUSTOM_DOMAIN_NAMEINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| Constructor and Description |
|---|
ImageProxy(HtmlTestDomainImplementation domain,
IChannel channel,
long handle) |
| Modifier and Type | Method and Description |
|---|---|
void |
click(MouseModifiers modifiers,
Subitem subitem) |
void |
click(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt) |
void |
click(Subitem subitem) |
void |
click(Subitem subitem,
java.awt.Point pt) |
void |
doubleClick(MouseModifiers modifiers,
Subitem subitem) |
void |
doubleClick(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt) |
void |
doubleClick(Subitem subitem) |
void |
doubleClick(Subitem subitem,
java.awt.Point pt) |
void |
drag(MouseModifiers modifiers,
Subitem subitem) |
void |
drag(MouseModifiers modifiers,
Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2) |
void |
drag(MouseModifiers modifiers,
Subitem subitem1,
Subitem subitem2) |
void |
drag(Subitem subitem) |
void |
drag(Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2) |
void |
drag(Subitem subitem1,
Subitem subitem2) |
void |
dragToScreenPoint(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point screenPt) |
void |
dragToScreenPoint(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt) |
void |
dragToScreenPoint(Subitem subitem,
java.awt.Point screenPt) |
void |
dragToScreenPoint(Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt) |
protected java.util.Vector |
getActionArgs(java.awt.Point point)
Override of getActionArgs in base class to provide the subitem action
data requested inside the base class implementation of processMouseEvent.
|
protected SubobjectProxy |
getArea(Subitem subitem) |
java.lang.Object |
getChildAtPoint(java.awt.Point pt)
All children of IMG elements are subitems, so this method always returns
null. |
java.lang.String |
getClearscriptSimpleName() |
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
java.lang.String |
getMapName() |
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_HTML. |
java.awt.Point |
getScreenPoint(Subitem subitem)
Returns the screen relative point to the center of the supplied
subitem.
|
java.awt.Point |
getScreenPoint(Subitem subitem,
java.awt.Point pt)
Returns the screen relative point given a subitem and a subitem
relative point.
|
java.awt.Rectangle |
getScreenRectangle(Subitem subitem)
Returns the rectangle that contains the component being
evaluated relative to the top left corner of the screen.
|
java.lang.Object |
getSubitem(Subitem subitem)
Returns an object that represents the specified subitem in the associated
test object.
|
HtmlGuiProxy |
getSubobject(Subitem subitem)
Returns the subobject specified by the subitem
|
java.lang.String |
getTestObjectClassName()
The default GUI marshaller is returned.
|
void |
hover(double secondDelay,
Subitem subitem) |
void |
hover(double secondDelay,
Subitem subitem,
java.awt.Point pt) |
void |
hover(Subitem subitem) |
void |
hover(Subitem subitem,
java.awt.Point pt) |
protected boolean |
isClientSide() |
boolean |
isMap() |
boolean |
isPointInObject(java.awt.Point point) |
void |
mouseMove(MouseModifiers modifiers,
Subitem subitem) |
void |
mouseMove(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt) |
void |
mouseMove(Subitem subitem) |
void |
mouseMove(Subitem subitem,
java.awt.Point subitemPt) |
void |
nClick(int clickCount,
MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt) |
void |
nClickDrag(int clickCount,
MouseModifiers modifiers,
Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2) |
void |
nClickDrag(int clickCount,
MouseModifiers modifiers,
Subitem subitem1,
Subitem subitem2) |
void |
nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
Subitem subitem,
java.awt.Point screenPt) |
void |
nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt) |
shouldBeMappedactivateTopWindow, click, clickAtScreenPoint, clickWithMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouseN, convertFromScreenToOffset, doScroll, doubleClick, doubleClickAtScreenPoint, drag, dragAtScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getChildAtPointN, getChildrenHandlesMatchingProperty, getClippedScreenRectangle, getClippingParent, getClippingParentRectangle, getCurrentMethod, getDefaultActionArgs, getDefaultPointToClick, getDefaultPointToClick, getMappableDocument, getMethodName, getMethodSpecForPoint, getPointFromAction, getPointOnObject, getPointToClick, getScreenCenter, getScreenPoint, getScreenRectangle, getTargetChildHandles, getTargetChildItem, getTargetChildItem, getTargetChildItems, getVisualClippableParent, hasFocus, hover, hoverAtScreenPoint, isEnabled, isInView, isInView, isOpaque, isPointInObject, isShowing, nClick, nClick, nClickAtScreenPoint, nClickDragAtScreenPoint, performAction, performClick, performClick, performDoubleClick, performSelect, performSetText, performWindowAction, processHoverMouseEvent, processMouseEvent, processPreDownMouseEvent, processPreUpMouseEvent, proxyGetChildAtPoint, restoreTopLevelWindow, scrollIntoView, scrollIntoView, scrollIntoView, scrollIntoViewN, scrollIntoViewWithDirection, scrollIntoViewWithDirectionN, setClickArgs, setCurrentMethod, setDownPointArgs, setDrag, setMethodSpecification, setMethodSpecification, setMultiClickAction, snapToRectangleaddAdditionalRecognitionProperties, 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, getChildren, getChildren, getChildren, getChildrenEnumeration, getChildrenEnumeration, getChildrenHandleEnumeration, getChildrenHandles, getChildrenN, getChildrenWithTagType, getClassIndex, getCustomClassProperty, getCustomClassPropertyValue, getCustomDomainName, getCustomDomainName, getCustomDomainName, getCustomDomainNameForChildren, getCustomDomainNameForParent, getCustomObject, getDataDrivableCommand, 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, getMappableChildren, getMappableElementsByNameInProxyTestObjects, getMappableElementsByTagInProxyTestObjects, getMappableParent, getMappableParent, getMethods, getNonValueProperties, getObject, getObjectClassName, getOwnedObjects, getOwnedObjects, getOwner, getParent, getParent, getParentN, getProperties, getProperties, getProperty, getProperty, getPropertyInternal, getPropertyInternalRunnable, getPropertyN, getProxyTestObjectsFromEnumeration, getReadOnlyProperty, getRecognitionProperties, getRecognitionPropertyWeight, getSavedDescriptiveName, getScriptCommandFlags, getStandardProperties, getStandardProperties, getTestData, getTestDataTypes, 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, getObjectCustomClassName, getProxy, getScriptCommandAnchor, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isValidObject, ping, suppressKeyActionpublic ImageProxy(HtmlTestDomainImplementation domain, IChannel channel, long handle)
public java.lang.String getTestObjectClassName()
HtmlProxygetTestObjectClassName in interface IProxyBasegetTestObjectClassName in class HtmlGuiProxypublic java.lang.String getDescriptiveName()
HtmlProxygetDescriptiveName in class HtmlProxypublic java.lang.String getRole()
TestObjectRole.ROLE_HTML.public java.lang.Object getChildAtPoint(java.awt.Point pt)
null.getChildAtPoint in class HtmlGuiProxypt - Screen relative point to check.HtmlGuiProxy.getScreenRectangle()public boolean isPointInObject(java.awt.Point point)
isPointInObject in class HtmlGuiProxypublic java.awt.Rectangle getScreenRectangle(Subitem subitem)
IHtmlGraphicalSubitemgetScreenRectangle
for the parent object, and then adjusting for the specified
subitem) combined into a single operation. The
rectangle is exposed so that actions may be directly scripted
against a visible subitem. null is returned if
the subitem is not showing.getScreenRectangle in interface IHtmlGraphicalSubitempublic java.awt.Point getScreenPoint(Subitem subitem)
IHtmlGraphicalSubitemgetScreenPoint in interface IHtmlGraphicalSubitemgetScreenPoint in class HtmlGuiProxypublic java.awt.Point getScreenPoint(Subitem subitem,
java.awt.Point pt)
IHtmlGraphicalSubitemgetScreenPoint in interface IHtmlGraphicalSubitempt - The subitem relative point.public java.lang.Object getSubitem(Subitem subitem)
SubitemNotFoundException
will be thrown if the specified subitem is invalid relative to the associated
test object. null may be returned if the subitem does not have
an object association that can be returned.subitem - The subitem to fetch an object for.public void click(Subitem subitem)
click in class HtmlGuiProxypublic void click(MouseModifiers modifiers,
Subitem subitem)
click in class HtmlGuiProxypublic void click(Subitem subitem,
java.awt.Point pt)
click in class HtmlGuiProxypublic void click(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
public void doubleClick(Subitem subitem)
doubleClick in class HtmlGuiProxypublic void doubleClick(MouseModifiers modifiers,
Subitem subitem)
doubleClick in class HtmlGuiProxypublic void doubleClick(Subitem subitem,
java.awt.Point pt)
doubleClick in class HtmlGuiProxypublic void doubleClick(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
public void nClick(int clickCount,
MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
public void drag(Subitem subitem)
drag in class HtmlGuiProxypublic void drag(MouseModifiers modifiers,
Subitem subitem)
drag in class HtmlGuiProxypublic void drag(Subitem subitem1,
Subitem subitem2)
drag in class HtmlGuiProxypublic void drag(MouseModifiers modifiers,
Subitem subitem1,
Subitem subitem2)
drag in class HtmlGuiProxypublic void drag(Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2)
public void drag(MouseModifiers modifiers,
Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2)
public void nClickDrag(int clickCount,
MouseModifiers modifiers,
Subitem subitem1,
Subitem subitem2)
nClickDrag in class HtmlGuiProxypublic void nClickDrag(int clickCount,
MouseModifiers modifiers,
Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2)
public void dragToScreenPoint(Subitem subitem,
java.awt.Point screenPt)
dragToScreenPoint in class HtmlGuiProxypublic void dragToScreenPoint(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point screenPt)
dragToScreenPoint in class HtmlGuiProxypublic void dragToScreenPoint(Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt)
dragToScreenPoint in class HtmlGuiProxypublic void dragToScreenPoint(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt)
public void nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
Subitem subitem,
java.awt.Point screenPt)
nClickDragToScreenPoint in class HtmlGuiProxypublic void nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt)
public void mouseMove(Subitem subitem)
mouseMove in class HtmlGuiProxypublic void mouseMove(Subitem subitem,
java.awt.Point subitemPt)
mouseMove in class HtmlGuiProxypublic void mouseMove(MouseModifiers modifiers,
Subitem subitem)
mouseMove in class HtmlGuiProxypublic void mouseMove(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
public void hover(double secondDelay,
Subitem subitem)
hover in class HtmlGuiProxypublic void hover(double secondDelay,
Subitem subitem,
java.awt.Point pt)
public void hover(Subitem subitem)
hover in class HtmlGuiProxypublic void hover(Subitem subitem,
java.awt.Point pt)
hover in class HtmlGuiProxypublic HtmlGuiProxy getSubobject(Subitem subitem)
IHtmlGraphicalSubitemgetSubobject in interface IHtmlGraphicalSubitemsubitem - The subitem which identifies the subobject to be returned.public boolean isMap()
protected SubobjectProxy getArea(Subitem subitem)
protected boolean isClientSide()
protected java.util.Vector getActionArgs(java.awt.Point point)
getActionArgs in class HtmlGuiProxypoint - point in screen coordinatespublic java.lang.String getMapName()
public java.lang.String getClearscriptSimpleName()