public class HtmlGuiProxy extends HtmlProxy implements com.rational.test.ft.object.interfaces.IGraphical
This class further contains the default implementation of various base class methods that proxy implementations may need to extend or override.
GuiTestObject
| Type | Desciption | |
|---|---|---|
| text | Visible Text | ITestDataText |
| 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. |
| .id | This is the value of the id attribute of an element. |
| .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. |
| .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. |
| Modifier and Type | Class and Description |
|---|---|
protected class |
HtmlGuiProxy.Clicker |
protected class |
HtmlGuiProxy.DoubleClicker |
protected class |
HtmlGuiProxy.Dragger |
protected class |
HtmlGuiProxy.Hoverer |
protected class |
HtmlGuiProxy.nClickDragger |
protected class |
HtmlGuiProxy.nClicker |
protected class |
HtmlGuiProxy.PointIterator
PointIterator class is an internal class used to iterate over the points
in a rectangle which may be tried for clicking.
|
HtmlProxy.GetObjectRunnable, HtmlProxy.HtmlElementEnumeration, HtmlProxy.IntegerByReference, HtmlProxy.InvalidNativeHandleException, HtmlProxy.JSObjectHtmlElementEnumeration, HtmlProxy.NativeProxyReleasedException| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
COLON |
protected static java.lang.String |
COMMA |
protected java.lang.String |
currentMethod |
protected static java.lang.String |
ESC_DBLQUOTE |
static java.lang.String |
GETSCREENSNAPSHOT |
protected static java.lang.String |
IS_WEB_PLAYER |
protected static java.lang.String |
JSON_CLOSE_BRACE |
protected static java.lang.String |
JSON_OPEN_BRACE |
protected static com.rational.test.ft.script.MouseModifiers |
LEFT |
static java.lang.String |
MAXIMIZE |
static java.lang.String |
OFFSETHEIGHTPROPERTY |
static java.lang.String |
OFFSETLEFTPROPERTY |
static java.lang.String |
OFFSETRECTPROPERTY |
static java.lang.String |
OFFSETTOPPROPERTY |
static java.lang.String |
OFFSETWIDTHPROPERTY |
protected static java.lang.String |
ONCHANGE |
static java.lang.String |
ONMOUSEOVER |
static java.lang.String |
RESTORE |
protected static java.lang.String |
TEXT |
BODYTAG, 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 |
|---|
HtmlGuiProxy(HtmlTestDomainImplementation domain,
com.rational.test.ft.domain.IChannel channel,
long handle) |
HtmlGuiProxy(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 void |
activateTopWindow() |
void |
click() |
void |
click(com.rational.test.ft.script.MouseModifiers modifiers) |
void |
click(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt) |
void |
click(java.awt.Point pt) |
protected void |
clickAtScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint)
Generate a click at the screen point.
|
void |
clickWithMouse(com.rational.test.ft.script.MouseModifiers modifiers) |
boolean |
clickWithOutMouse() |
boolean |
clickWithOutMouse(long handle) |
boolean |
clickWithOutMouse(com.rational.test.ft.script.MouseModifiers modifiers) |
boolean |
clickWithOutMouse(com.rational.test.ft.script.MouseModifiers modifiers,
long handle) |
boolean |
clickWithOutMouse(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt) |
boolean |
clickWithOutMouse(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt,
long handle) |
boolean |
clickWithOutMouseN(long handle) |
java.awt.Point |
convertFromScreenToOffset(java.awt.Point pt) |
void |
doScroll(HtmlGuiProxy subObject) |
void |
doubleClick() |
void |
doubleClick(com.rational.test.ft.script.MouseModifiers modifiers) |
void |
doubleClick(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt) |
void |
doubleClick(java.awt.Point pt) |
protected void |
doubleClickAtScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint) |
void |
drag() |
void |
drag(com.rational.test.ft.script.MouseModifiers modifiers) |
void |
drag(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt1,
java.awt.Point pt2) |
void |
drag(java.awt.Point pt1,
java.awt.Point pt2) |
protected void |
dragAtScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint1,
java.awt.Point screenPoint2)
Generate a drag using the screen points.
|
void |
dragToScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point objectPoint,
java.awt.Point screenPoint) |
void |
dragToScreenPoint(java.awt.Point screenPt) |
void |
dragToScreenPoint(java.awt.Point objectPoint,
java.awt.Point screenPoint) |
boolean |
ensureObjectIsVisible() |
protected java.util.Vector |
getActionArgs(java.awt.Point point)
Generate the action argument for the screen point.
|
long |
getChildAtPoint(long handle,
int x,
int y) |
java.lang.Object |
getChildAtPoint(java.awt.Point pt)
Finds the most interesting child object at the specified point.
|
long |
getChildAtPointN(long handle,
int x,
int y) |
java.util.ArrayList |
getChildrenHandlesMatchingProperty(java.lang.String propertyName,
java.util.ArrayList propertyValues) |
java.awt.Rectangle |
getClippedScreenRectangle() |
com.rational.test.ft.object.interfaces.IGraphical |
getClippingParent()
Get the clipping parent for this object.
|
java.awt.Rectangle |
getClippingParentRectangle()
Return the screen rectangle of this objects clipping parent.
|
java.lang.String |
getCurrentMethod() |
protected java.util.Vector |
getDefaultActionArgs(java.awt.Point point) |
protected java.awt.Point |
getDefaultPointToClick()
Determines the default click point by performing hit tests on candidates.
|
protected java.awt.Point |
getDefaultPointToClick(java.awt.Rectangle screenRect)
Determines the default click point by performing hit tests on candidates.
|
com.rational.test.ft.domain.ProxyTestObject |
getMappableDocument() |
protected java.lang.String |
getMethodName(com.rational.test.ft.domain.IMouseActionInfo action) |
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.awt.Point |
getPointFromAction(com.rational.test.ft.domain.IMouseActionInfo action,
int index) |
java.awt.Point |
getPointOnObject() |
protected java.awt.Point |
getPointToClick(java.awt.Rectangle screenRect)
Find a clickable point for this object within the given screen rectangle.
|
protected java.awt.Point |
getScreenCenter()
Get screen rectangle for object and caluclate the center point
of the rectangle.
|
java.awt.Point |
getScreenPoint() |
java.awt.Point |
getScreenPoint(java.awt.Point objectPoint) |
java.awt.Rectangle |
getScreenRectangle() |
java.lang.String |
getScreenSnapshot() |
java.util.ArrayList |
getTargetChildHandles(java.lang.String childTagName,
java.lang.String property,
java.util.ArrayList propertyValues) |
HtmlGuiProxy |
getTargetChildItem(HtmlProxy proxy,
java.lang.String childTagName,
java.lang.String property,
java.util.ArrayList propertyValues) |
HtmlGuiProxy |
getTargetChildItem(java.lang.String childTagName,
java.lang.String property,
java.util.ArrayList propertyValues) |
java.util.ArrayList |
getTargetChildItems(java.lang.String childTagName,
java.lang.String property,
java.util.ArrayList propertyValues) |
java.lang.String |
getTestObjectClassName()
The default GUI marshaller is returned.
|
protected com.rational.test.ft.domain.ProxyTestObject |
getVisualClippableParent() |
boolean |
hasFocus() |
void |
hover() |
void |
hover(double delay) |
void |
hover(double delay,
java.awt.Point pt) |
void |
hover(java.awt.Point pt) |
protected void |
hoverAtScreenPoint(double delay,
java.awt.Point screenPoint) |
boolean |
isEnabled() |
boolean |
isInView()
Is the object in view (not clipped)?
|
boolean |
isInView(java.awt.Point pt) |
boolean |
isOpaque() |
boolean |
isPointInObject(long handle,
int x,
int y) |
boolean |
isPointInObject(java.awt.Point point) |
boolean |
isShowing() |
void |
mouseMove(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt) |
void |
mouseMove(java.awt.Point pt) |
void |
nClick(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers) |
void |
nClick(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt) |
protected void |
nClickAtScreenPoint(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint)
Generate a nClick at the screen point.
|
void |
nClickDrag(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt1,
java.awt.Point pt2) |
protected void |
nClickDragAtScreenPoint(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint1,
java.awt.Point screenPoint2) |
void |
nClickDragToScreenPoint(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point objectPt,
java.awt.Point screenPt) |
boolean |
performAction(long handle,
java.lang.String action,
java.lang.String text,
boolean isWebPlayer) |
boolean |
performClick(com.rational.test.ft.script.MouseModifiers modifiers) |
boolean |
performClick(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt) |
boolean |
performDoubleClick(com.rational.test.ft.script.MouseModifiers modifiers) |
boolean |
performSelect(java.lang.String item) |
boolean |
performSetText(java.lang.String text) |
boolean |
performWindowAction(long handle,
java.lang.String action,
java.lang.String text,
boolean isWebPlayer) |
protected void |
processHoverMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action) |
void |
processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
protected void |
processPreDownMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action) |
protected void |
processPreUpMouseEvent(com.rational.test.ft.domain.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 will override
the one recorded on the PRE_DOWN.
|
java.lang.Object |
proxyGetChildAtPoint(java.awt.Point pt) |
protected void |
restoreTopLevelWindow() |
boolean |
scrollIntoView() |
boolean |
scrollIntoView(boolean scrollDirection) |
protected boolean |
scrollIntoView(long nativeHandle) |
protected boolean |
scrollIntoViewN(long handle) |
protected boolean |
scrollIntoViewWithDirection(long nativeHandle,
boolean scrollDirection) |
protected boolean |
scrollIntoViewWithDirectionN(long handle,
boolean scrollDirection) |
protected java.util.Vector |
setClickArgs(int modifiers)
Set args for click
(depends on clickArgs member variable set by getActionArgs in PRE_DOWN)
|
void |
setCurrentMethod(java.lang.String currentMethod) |
protected java.util.Vector |
setDownPointArgs(int modifiers)
Set args for down point
(depends on clickArgs member variable set by getActionArgs in PRE_DOWN)
|
protected java.util.Vector |
setDrag(com.rational.test.ft.domain.IMouseActionInfo action,
int modifiers,
java.awt.Point firstPoint,
java.awt.Point nthPoint)
Set args and method for single click drag
member variable screenRect must be set before calling this method.
|
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) |
protected java.util.Vector |
setMultiClickAction(int clicks,
int modifiers,
boolean isDrag,
java.awt.Point firstPoint,
java.awt.Point nthPoint)
Set args for multi-click action (more than two clicks in one place, or more than one click drag)
member variable screenRect must be set before calling this method.
|
static java.awt.Point |
snapToRectangle(java.awt.Rectangle rect,
java.awt.Point originalPoint) |
addAdditionalRecognitionProperties, addChildrenHandlesToVector, addChildrenToVector, addChildrenToVector, addDataDrivableCommands, addDojoDomain, addRecognitionProperty, adjustCustomDomains, calculateParentsTextDescendantsMayBecomeInteresting, 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, getChildren, getChildrenEnumeration, getChildrenEnumeration, getChildrenHandleEnumeration, getChildrenHandles, getChildrenN, getChildrenWithTagType, getClassIndex, getCustomClassProperty, getCustomClassPropertyValue, getCustomDomainName, getCustomDomainName, getCustomDomainName, getCustomDomainNameForChildren, getCustomDomainNameForParent, getCustomObject, getDataDrivableCommand, getDescriptiveName, 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, getMappableChildren, getMappableElementsByNameInProxyTestObjects, getMappableElementsByTagInProxyTestObjects, getMappableParent, getMappableParent, getMethods, getNonValueProperties, getObject, getObjectClassName, getOwnedObjects, getOwnedObjects, getOwner, getParent, getParent, getParent, getParentN, getProperties, getProperties, getProperty, getProperty, getPropertyInternal, getPropertyInternalRunnable, getPropertyN, getProxyTestObjectsFromEnumeration, getReadOnlyProperty, getRecognitionProperties, getRecognitionPropertyWeight, getRole, 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, shouldBeMapped, shouldDocumentBeAdded, split, updateTestDatabaseClassMatch, canTakeVP, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getDataDrivableCommands, getElementWithFocus, getField, getObjectCustomClassName, getProxy, getScriptCommandAnchor, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isValidObject, ping, suppressKeyActionprotected static final java.lang.String JSON_CLOSE_BRACE
protected static final java.lang.String JSON_OPEN_BRACE
protected static final java.lang.String ONCHANGE
protected static final java.lang.String ESC_DBLQUOTE
protected static final java.lang.String COMMA
protected static final java.lang.String COLON
protected static final java.lang.String TEXT
protected static final java.lang.String IS_WEB_PLAYER
public static final java.lang.String MAXIMIZE
public static final java.lang.String RESTORE
public static final java.lang.String ONMOUSEOVER
public static final java.lang.String GETSCREENSNAPSHOT
protected static final com.rational.test.ft.script.MouseModifiers LEFT
protected java.lang.String currentMethod
public static final java.lang.String OFFSETWIDTHPROPERTY
public static final java.lang.String OFFSETHEIGHTPROPERTY
public static final java.lang.String OFFSETLEFTPROPERTY
public static final java.lang.String OFFSETTOPPROPERTY
public static final java.lang.String OFFSETRECTPROPERTY
public HtmlGuiProxy(HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel, long handle, com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
public HtmlGuiProxy(HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel, long handle)
public java.lang.String getTestObjectClassName()
HtmlProxygetTestObjectClassName in interface com.rational.test.ft.domain.IProxyBasegetTestObjectClassName in class HtmlProxypublic void click()
click in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void click(com.rational.test.ft.script.MouseModifiers modifiers)
click in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void clickWithMouse(com.rational.test.ft.script.MouseModifiers modifiers)
public void click(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt)
click in interface com.rational.test.ft.object.interfaces.IGraphicalprotected void clickAtScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint)
modifiers - -screenPoint - - point in screen coordinatesprotected void restoreTopLevelWindow()
protected void activateTopWindow()
public void click(java.awt.Point pt)
click in interface com.rational.test.ft.object.interfaces.IGraphicalprotected void doubleClickAtScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint)
public void doubleClick()
doubleClick in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void doubleClick(com.rational.test.ft.script.MouseModifiers modifiers)
doubleClick in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void doubleClick(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt)
doubleClick in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void doubleClick(java.awt.Point pt)
doubleClick in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void drag()
drag in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void drag(com.rational.test.ft.script.MouseModifiers modifiers)
drag in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void drag(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt1,
java.awt.Point pt2)
drag in interface com.rational.test.ft.object.interfaces.IGraphicalpublic static java.awt.Point snapToRectangle(java.awt.Rectangle rect,
java.awt.Point originalPoint)
public void drag(java.awt.Point pt1,
java.awt.Point pt2)
drag in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void dragToScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point objectPoint,
java.awt.Point screenPoint)
dragToScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void dragToScreenPoint(java.awt.Point screenPt)
dragToScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void dragToScreenPoint(java.awt.Point objectPoint,
java.awt.Point screenPoint)
dragToScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalprotected void dragAtScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint1,
java.awt.Point screenPoint2)
modifiers - -screenPoint1 - - point in screen coordinatesscreenPoint1 - - point in screen coordinatespublic java.awt.Point getScreenPoint()
getScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalpublic java.awt.Point getScreenPoint(java.awt.Point objectPoint)
getScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalpublic java.awt.Rectangle getScreenRectangle()
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalpublic java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalpublic boolean hasFocus()
hasFocus in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void hover(double delay)
hover in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void hover(double delay,
java.awt.Point pt)
hover in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void hover()
hover in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void hover(java.awt.Point pt)
hover in interface com.rational.test.ft.object.interfaces.IGraphicalprotected void hoverAtScreenPoint(double delay,
java.awt.Point screenPoint)
protected java.awt.Point getScreenCenter()
public boolean isEnabled()
isEnabled in interface com.rational.test.ft.object.interfaces.IGraphicalpublic boolean isOpaque()
isOpaque in interface com.rational.test.ft.object.interfaces.IGraphicalpublic com.rational.test.ft.object.interfaces.IGraphical getClippingParent()
public java.awt.Rectangle getClippingParentRectangle()
public boolean isPointInObject(java.awt.Point point)
isPointInObject in interface com.rational.test.ft.object.interfaces.IGraphicalpublic boolean isPointInObject(long handle,
int x,
int y)
public boolean ensureObjectIsVisible()
public void doScroll(HtmlGuiProxy subObject)
public boolean scrollIntoView()
public boolean scrollIntoView(boolean scrollDirection)
protected boolean scrollIntoView(long nativeHandle)
protected boolean scrollIntoViewN(long handle)
protected boolean scrollIntoViewWithDirection(long nativeHandle,
boolean scrollDirection)
protected boolean scrollIntoViewWithDirectionN(long handle,
boolean scrollDirection)
public java.lang.Object getChildAtPoint(java.awt.Point pt)
If this object has no children, it should return null.
getChildAtPoint in interface com.rational.test.ft.object.interfaces.IGraphicalpt - Screen relative point to check.getScreenRectangle()public java.lang.Object proxyGetChildAtPoint(java.awt.Point pt)
public java.awt.Point convertFromScreenToOffset(java.awt.Point pt)
public long getChildAtPoint(long handle,
int x,
int y)
public long getChildAtPointN(long handle,
int x,
int y)
public boolean isShowing()
isShowing in interface com.rational.test.ft.object.interfaces.IGraphicalpublic boolean isInView()
public boolean isInView(java.awt.Point pt)
public void mouseMove(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt)
mouseMove in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void mouseMove(java.awt.Point pt)
mouseMove in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void nClick(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers)
public void nClick(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt)
nClick in interface com.rational.test.ft.object.interfaces.IGraphicalprotected void nClickAtScreenPoint(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint)
modifiers - -screenPoint - - point in screen coordinatespublic void nClickDrag(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt1,
java.awt.Point pt2)
nClickDrag in interface com.rational.test.ft.object.interfaces.IGraphicalpublic void nClickDragToScreenPoint(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point objectPt,
java.awt.Point screenPt)
nClickDragToScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalprotected void nClickDragAtScreenPoint(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point screenPoint1,
java.awt.Point screenPoint2)
public void processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processMouseEvent in class HtmlProxyaction - The event cache and other mouse state information
for this mouse action.MethodSpecification,
getActionArgs(java.awt.Point)protected void processHoverMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
protected void processPreDownMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
protected java.lang.String getMethodName(com.rational.test.ft.domain.IMouseActionInfo action)
public java.awt.Point getPointFromAction(com.rational.test.ft.domain.IMouseActionInfo action,
int index)
protected void processPreUpMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action,
int clicks,
boolean isDrag)
public java.lang.String getCurrentMethod()
public void setCurrentMethod(java.lang.String currentMethod)
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)
protected java.util.Vector setClickArgs(int modifiers)
protected java.util.Vector setDownPointArgs(int modifiers)
protected java.util.Vector setDrag(com.rational.test.ft.domain.IMouseActionInfo action,
int modifiers,
java.awt.Point firstPoint,
java.awt.Point nthPoint)
protected java.util.Vector setMultiClickAction(int clicks,
int modifiers,
boolean isDrag,
java.awt.Point firstPoint,
java.awt.Point nthPoint)
protected java.awt.Point getDefaultPointToClick()
protected java.awt.Point getDefaultPointToClick(java.awt.Rectangle screenRect)
public java.awt.Point getPointOnObject()
protected java.awt.Point getPointToClick(java.awt.Rectangle screenRect)
public com.rational.test.ft.sys.MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
HtmlProxyIGraphical.getScreenPoint will be returned. However, if a proxy can fingetMethodSpecForPoint in class HtmlProxyMethodSpecificationprotected java.util.Vector getActionArgs(java.awt.Point point)
point - point in screen coordinatesprotected java.util.Vector getDefaultActionArgs(java.awt.Point point)
public boolean clickWithOutMouse()
public boolean clickWithOutMouse(long handle)
public boolean clickWithOutMouse(com.rational.test.ft.script.MouseModifiers modifiers)
public boolean clickWithOutMouse(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt)
public boolean clickWithOutMouse(com.rational.test.ft.script.MouseModifiers modifiers,
long handle)
public boolean clickWithOutMouse(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt,
long handle)
public boolean clickWithOutMouseN(long handle)
public HtmlGuiProxy getTargetChildItem(java.lang.String childTagName, java.lang.String property, java.util.ArrayList propertyValues)
public HtmlGuiProxy getTargetChildItem(HtmlProxy proxy, java.lang.String childTagName, java.lang.String property, java.util.ArrayList propertyValues)
public java.util.ArrayList getTargetChildItems(java.lang.String childTagName,
java.lang.String property,
java.util.ArrayList propertyValues)
public java.util.ArrayList getTargetChildHandles(java.lang.String childTagName,
java.lang.String property,
java.util.ArrayList propertyValues)
public java.util.ArrayList getChildrenHandlesMatchingProperty(java.lang.String propertyName,
java.util.ArrayList propertyValues)
protected com.rational.test.ft.domain.ProxyTestObject getVisualClippableParent()
getVisualClippableParent in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean performAction(long handle,
java.lang.String action,
java.lang.String text,
boolean isWebPlayer)
public java.lang.String getScreenSnapshot()
public boolean performWindowAction(long handle,
java.lang.String action,
java.lang.String text,
boolean isWebPlayer)
public boolean performClick(com.rational.test.ft.script.MouseModifiers modifiers)
public boolean performClick(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt)
public boolean performDoubleClick(com.rational.test.ft.script.MouseModifiers modifiers)
public boolean performSetText(java.lang.String text)
public boolean performSelect(java.lang.String item)
public com.rational.test.ft.domain.ProxyTestObject getMappableDocument()