public class WpfGuiTestObject extends WpfVisualTestObject implements IWpfGraphical
ignoreTheObjectState, ref| Constructor and Description |
|---|
WpfGuiTestObject()
For internal use.
|
WpfGuiTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
For internal use.
|
WpfGuiTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor)
For internal use.
|
WpfGuiTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
For internal use.
|
WpfGuiTestObject(TestObject obj)
For internal use.
|
WpfGuiTestObject(com.rational.test.ft.object.TestObjectReference ref)
For internal use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
click(DPoint pt)
Clicks at a given DPoint
|
void |
click(MouseModifiers modifiers,
DPoint pt)
Performs a click on the specified coordinates, relative to the associated TestObject.
|
void |
doubleClick(DPoint pt)
Performs a left-mouse double-click on the specified DPoint
|
void |
doubleClick(MouseModifiers modifiers,
DPoint pt)
Performs a double-click on the specified coordinates, relative to the associated TestObject
|
void |
drag(DPoint pt1,
DPoint pt2)
Performs a (left button) mouse drag action against the associated TestObject.
|
void |
drag(MouseModifiers modifiers,
DPoint pt1,
DPoint pt2)
Performs a mouse drag action against the associated TestObject
|
void |
dragToScreenPoint(DPoint screenPt)
Performs a drag to the specified DPoint on the screen
|
void |
dragToScreenPoint(DPoint objectPt,
DPoint screenPt)
Performs a drag from an object point to a screen point
|
void |
dragToScreenPoint(DPoint objectPt,
java.awt.Point screenPt)
Performs a drag from an object point to a screen point
|
void |
dragToScreenPoint(MouseModifiers modifiers,
DPoint objectPt,
DPoint screenPt)
Performs a drag from an object point to a screen point
|
void |
dragToScreenPoint(MouseModifiers modifiers,
DPoint objectPt,
java.awt.Point screenPt)
Performs a drag from an object point to a screen point
|
java.lang.Object |
getChildAtPoint(DPoint pt)
Finds the child object that is at the specified DPoint.
|
java.awt.Point |
getScreenPoint(DPoint pt)
Returns the screen-relative Point, given an object relative DPoint.
|
void |
hover(double secondDelay,
DPoint pt)
Hovers the mouse over the specified coordinates of the associated TestObject
|
void |
hover(DPoint pt)
Hovers the mouse over the specified coordinates of the associated TestObject
|
boolean |
isPointInObject(DPoint pt)
Determines whether the specified screen-relative DPoint is contained in the component under evaluation.
|
void |
mouseMove(DPoint pt)
Performs a MOUSE_LEFT move action against the associated TestObject
|
void |
mouseMove(MouseModifiers modifiers,
DPoint pt)
Performs a MOUSE_LEFT move action against the associated TestObject
|
void |
nClick(int clickCount,
MouseModifiers modifiers,
DPoint pt)
Performs a mouse n-click action on the specified coordinates, relative to the associated TestObject.
|
void |
nClickDrag(int clickCount,
MouseModifiers modifiers,
DPoint pt1,
DPoint pt2)
Performs a mouse n-click drag action from and to the specified coordinates, relative to the associated TestObject
|
void |
nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
DPoint objectPt,
DPoint screenPt)
Performs a n-click drag from an object point to a screen point
|
void |
nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
DPoint objectPt,
java.awt.Point screenPt)
Performs a n-click drag from an object point to a screen point
|
GetChildrenAtPoint, GetLogicalChildren, GetLogicalParent, GetVisualChildren, GetVisualParentcanTakeVP, click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getClippedScreenRectangle, getImage, getImage, getIWindow, getRole, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getVisibleArea, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, switchToexists, exists, exists, find, find, findAndInvoke, findAndInvokeProxy, getProperty, getTestDataTypes, invoke, invokeProxy, unregister, waitForExistencecompare, compare, compareAndLog, compareAndLog, equals, find, findAndInvoke, getActualData, getChildren, getDescribedObject, getDescribedObjects, getDescriptiveName, getDomain, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMapProperties, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectCustomClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getProperties, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTopMappableParent, getTopParent, hashCode, invoke, invoke, invoke, invokeProxy, invokeProxy, isHtmlWebui, isLoggedDuringUnregister, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setLoggedDuringUnregister, setMapProperties, setProperty, toString, updateTestData, waitForExistenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getChildAtPoint, getClippedScreenRectangle, getScreenPoint, getScreenPoint, getScreenRectangle, hasFocus, hover, hover, hover, hover, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPointpublic WpfGuiTestObject()
public WpfGuiTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
public WpfGuiTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor)
public WpfGuiTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
public WpfGuiTestObject(TestObject obj)
public WpfGuiTestObject(com.rational.test.ft.object.TestObjectReference ref)
public boolean isPointInObject(DPoint pt)
isPointInObject in interface IWpfGraphicalpt - - the DPoint which needs to checkedboolean : true if the component contains the point; false otherwise.getScreenRectangle is typically used to resolve this query, there are situations for which this
is not accurate. For example, if the clickable region on a button is not rectangular, checking only whether the point is in
the rectangle would yield an invalid result.GuiTestObject.getScreenRectangle(),
com.rational.test.ft.value.DPoint}public java.lang.Object getChildAtPoint(DPoint pt)
getChildAtPoint in interface IWpfGraphicalpt - - the DPoint where the child object is requiredjava.lang.Object - The object at the point, or null if no child object is found.GuiTestObject.getScreenRectangle(),
com.rational.test.ft.value.DPoint}public java.awt.Point getScreenPoint(DPoint pt)
getScreenPoint in interface IWpfGraphicalpt - - The object-relative DPointjava.awt.Point - The screen relative DPointcom.rational.test.ft.object.interfaces.WPF.IWpfGraphical#getScreenPoint(com.rational.test.ft.value.DPoint)},
com.rational.test.ft.value.DPoint}public void click(DPoint pt)
click in interface IWpfGraphicalpt - - The DPoint where a click needs to be done.com.rational.test.ft.object.interfaces.WPF.IWpfGraphical#click(DPoint)},
com.rational.test.ft.value.DPoint}public void click(MouseModifiers modifiers, DPoint pt)
click in interface IWpfGraphicalpt: - The DPoint where a click needs to be donemodifiers: - MouseModifiers object.com.rational.test.ft.object.interfaces.WPF.IWpfGraphical#click(MouseModifiers, DPoint)},
com.rational.test.ft.value.DPoint},
com.rational.test.ft.script.MouseModifiers}public void doubleClick(DPoint pt)
doubleClick in interface IWpfGraphicalpt: - The DPoint where a click needs to be donecom.rational.test.ft.object.interfaces.WPF.IWpfGraphical#doubleClick(DPoint)},
com.rational.test.ft.value.DPoint}public void doubleClick(MouseModifiers modifiers, DPoint pt)
doubleClick in interface IWpfGraphicalpt: - The DPoint where a double click needs to be done,modifiers: - MouseModifiers object.MouseModifiers.com.rational.test.ft.object.interfaces.WPF.IWpfGraphical#doubleClick(MouseModifiers, DPoint)},
com.rational.test.ft.value.DPoint},
com.rational.test.ft.script.MouseModifiers}public void nClick(int clickCount,
MouseModifiers modifiers,
DPoint pt)
nClick in interface IWpfGraphicalclickCount - - Number of clicks to be performed.modifiers - - MouseModifiers object to set the type of click.pt - - The DPoint where a click needs to be done.MouseModifierscom.rational.test.ft.object.interfaces.WPF.IWpfGraphical#nClick(int, MouseModifiers, DPoint)},
com.rational.test.ft.value.DPoint},
com.rational.test.ft.script.MouseModifiers}public void drag(DPoint pt1, DPoint pt2)
drag in interface IWpfGraphicalpt1 - - The initial DPointpt2 - - The final DPointcom.rational.test.ft.object.interfaces.WPF.IWpfGraphical#drag(DPoint, DPoint)},
com.rational.test.ft.value.DPoint}public void drag(MouseModifiers modifiers, DPoint pt1, DPoint pt2)
drag in interface IWpfGraphicalmodifiers - - MouseModifiers object to set the type of dragpt1 - - The initial DPointpt2 - - The final DPointMouseModifierscom.rational.test.ft.object.interfaces.WPF.IWpfGraphical#drag(DPoint, DPoint)},
com.rational.test.ft.value.DPoint},
com.rational.test.ft.script.MouseModifiers}public void nClickDrag(int clickCount,
MouseModifiers modifiers,
DPoint pt1,
DPoint pt2)
nClickDrag in interface IWpfGraphicalmodifiers - - MouseModifiers object to set the type of dragpt1 - - The initial DPointpt2 - - The final DPointclickCount - - number of clicks to be doneMouseModifierscom.rational.test.ft.object.interfaces.WPF.IWpfGraphical#drag(DPoint, DPoint)},
com.rational.test.ft.value.DPoint},
com.rational.test.ft.script.MouseModifiers}public void dragToScreenPoint(DPoint screenPt)
dragToScreenPoint in interface IWpfGraphicalscreenPt - - The final DPointMOUSE_LEFT drag action on the associated TestObject.
The action is performed from a valid point within this TestObject to
the screen-relative DPoint.com.rational.test.ft.object.interfaces.WPF.IWpfGraphical#dragToScreenPoint(DPoint)},
com.rational.test.ft.value.DPoint}public void dragToScreenPoint(DPoint objectPt, java.awt.Point screenPt)
objectPt - - The DPoint on the Object, relative to the objectscreenPt - - The screen relative java.awt.PointMOUSE_LEFT drag action against the associated TestObject.
The action is performed from a DPoint relative to this TestObject, to
the screen-relative point.com.rational.test.ft.object.interfaces.WPF.IWpfGraphical#dragToScreenPoint(DPoint, DPoint)},
com.rational.test.ft.value.DPoint}public void dragToScreenPoint(DPoint objectPt, DPoint screenPt)
dragToScreenPoint in interface IWpfGraphicalobjectPt - - The initial DPoint on the Object, relative to the objectscreenPt - - The final DPoint relative to the screen.MOUSE_LEFT drag action against the associated TestObject.
The action is performed from a DPoint relative to this TestObject, to a DPoint relative to the screencom.rational.test.ft.object.interfaces.WPF.IWpfGraphical#dragToScreenPoint(DPoint, DPoint)},
com.rational.test.ft.value.DPoint}public void dragToScreenPoint(MouseModifiers modifiers, DPoint objectPt, java.awt.Point screenPt)
modifiers - - MouseModifiers object to set the type of dragobjectPt - - The initial DPoint on the Object, relative to the objectscreenPt - - The final java.awt.Point relative to the screen.com.rational.test.ft.object.interfaces.WPF.IWpfGraphical#dragToScreenPoint(MouseModifiers, DPoint, DPoint)},
com.rational.test.ft.value.DPoint},
com.rational.test.ft.script.MouseModifiers},
com.rational.test.ft.object.interfaces.GuiTestObject#dragToScreenPoint(MouseModifiers, java.awt.Point, java.awt.Point)public void dragToScreenPoint(MouseModifiers modifiers, DPoint objectPt, DPoint screenPt)
dragToScreenPoint in interface IWpfGraphicalmodifiers - - MouseModifiers object to set the type of dragobjectPt - - The initial DPoint on the Object, relative to the objectscreenPt - - The final DPoint relative to the screen.com.rational.test.ft.object.interfaces.WPF.IWpfGraphical#dragToScreenPoint(MouseModifiers, DPoint, DPoint)},
com.rational.test.ft.value.DPoint},
com.rational.test.ft.script.MouseModifiers},
com.rational.test.ft.object.interfaces.GuiTestObject#dragToScreenPoint(MouseModifiers, java.awt.Point, java.awt.Point)public void nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
DPoint objectPt,
java.awt.Point screenPt)
clickCount - - Number of clicks to be performed.modifiers - - MouseModifiers object to set the type of dragobjectPt - - The initial DPoint on the Object, relative to the objectscreenPt - - The final java.awt.Point relative to the screen.com.rational.test.ft.object.interfaces.WPF.IWpfGraphical#nClickDragToScreenPoint(int, MouseModifiers, DPoint, DPoint)},
com.rational.test.ft.value.DPoint},
com.rational.test.ft.script.MouseModifiers},
com.rational.test.ft.object.interfaces.GuiTestObject#dragToScreenPoint(MouseModifiers, java.awt.Point, java.awt.Point)public void nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
DPoint objectPt,
DPoint screenPt)
nClickDragToScreenPoint in interface IWpfGraphicalclickCount - - Number of clicks to be performed.modifiers - - MouseModifiers object to set the type of dragobjectPt - - The initial DPoint on the Object, relative to the objectscreenPt - - The final DPoint relative to the screen.com.rational.test.ft.object.interfaces.WPF.IWpfGraphical#nClickDragToScreenPoint(int, MouseModifiers, DPoint, DPoint)},
com.rational.test.ft.value.DPoint},
com.rational.test.ft.script.MouseModifiers},
com.rational.test.ft.object.interfaces.GuiTestObject#dragToScreenPoint(MouseModifiers, java.awt.Point, java.awt.Point)public void mouseMove(DPoint pt)
mouseMove in interface IWpfGraphicalcom.rational.test.ft.value.DPoint},
com.rational.test.ft.object.interfaces.GuiTestObject#mouseMove(java.awt.Point)}public void mouseMove(MouseModifiers modifiers, DPoint pt)
mouseMove in interface IWpfGraphicalmodifiers - - MouseModifiers objectpt - - The final DPoint relative to the TestObjectcom.rational.test.ft.value.DPoint},
com.rational.test.ft.object.interfaces.GuiTestObject#mouseMove(java.awt.Point)}public void hover(DPoint pt)
hover in interface IWpfGraphicalpt - - The Dpoint relative to the objectcom.rational.test.ft.object.interfaces.GuiTestObject#hover(java.awt.Point)},
com.rational.test.ft.value.DPoint}public void hover(double secondDelay,
DPoint pt)
hover in interface IWpfGraphicalsecondDelay - - The time period for Hover in seconds.pt - - The Dpoint where Hover needs to done, relative to the object.com.rational.test.ft.value.DPoint},
com.rational.test.ft.object.interfaces.GuiTestObject#hover(double, java.awt.Point)}