public interface Control extends ObjectTreeNode, VisualObject
Modifier and Type | Method and Description |
---|---|
void |
click()
Simulates a left-button single click in a window or control.
|
void |
click(int clientX,
int clientY)
Simulates a left-button single click in a window or control.
|
void |
click(int clientX,
int clientY,
ShiftKey shift)
Simulates a left-button single click in a window or control.
|
void |
clickM()
Simulates a middle-button single click in a window or control.
|
void |
clickM(int clientX,
int clientY)
Simulates a middle-button single click in a window or control.
|
void |
clickM(int clientX,
int clientY,
ShiftKey shift)
Simulates a middle-button single click in a window or control.
|
void |
clickR()
Simulates a right-button single click in a window or control.
|
void |
clickR(int clientX,
int clientY)
Simulates a right-button single click in a window or control.
|
void |
clickR(int clientX,
int clientY,
ShiftKey shift)
Simulates a right-button single click in a window or control.
|
void |
dblClick()
Simulates a left-button double click in a window or control.
|
void |
dblClick(int clientX,
int clientY)
Simulates a left-button double click in a window or control.
|
void |
dblClick(int clientX,
int clientY,
ShiftKey shift)
Simulates a left-button double click in a window or control.
|
void |
dblClickM()
Simulates a middle-button double click in a window or control.
|
void |
dblClickM(int clientX,
int clientY)
Simulates a middle-button double click in a window or control.
|
void |
dblClickM(int clientX,
int clientY,
ShiftKey shift)
Simulates a middle-button double click in a window or control.
|
void |
dblClickR()
Simulates a right-button double click in a window or control.
|
void |
dblClickR(int clientX,
int clientY)
Simulates a right-button double click in a window or control.
|
void |
dblClickR(int clientX,
int clientY,
ShiftKey shift)
Simulates a right-button double click in a window or control.
|
void |
drag(int clientX,
int clientY,
int toX,
int toY)
Simulates a left-button mouse drag in a window or control.
|
void |
drag(int clientX,
int clientY,
int toX,
int toY,
ShiftKey shift)
Simulates a left-button mouse drag in a window or control.
|
void |
dragM(int clientX,
int clientY,
int toX,
int toY)
Simulates a middle-button mouse drag in a window or control.
|
void |
dragM(int clientX,
int clientY,
int toX,
int toY,
ShiftKey shift)
Simulates a middle-button mouse drag in a window or control.
|
void |
dragR(int clientX,
int clientY,
int toX,
int toY)
Simulates a right-button mouse drag in a window or control.
|
void |
dragR(int clientX,
int clientY,
int toX,
int toY,
ShiftKey shift)
Simulates a right-button mouse drag in a window or control.
|
boolean |
getEnabled()
Specifies whether the object is enabled or disabled.
|
int |
getHeight()
The object's height in pixels.
|
int |
getScreenLeft()
The horizontal position of the object's left edge in screen coordinates.
|
int |
getScreenTop()
The vertical position of the object's top edge in screen coordinates.
|
boolean |
getVisible()
Specifies whether an onscreen object is visible to users.
|
boolean |
getVisibleOnScreen()
Specifies whether the whole object or any of its parts is currently visible on screen.
|
int |
getWidth()
The object's width in pixels.
|
void |
hoverMouse()
Places the mouse pointer over the specified control.
|
void |
hoverMouse(int clientX,
int clientY)
Places the mouse pointer over the specified control.
|
void |
keys(String keys)
Simulates keyboard input to a window or control.
|
void |
mouseWheel(int delta)
Simulates mouse wheel rotation.
|
void |
mouseWheel(int delta,
ShiftKey shift)
Simulates mouse wheel rotation.
|
Point |
screenToWindow(int x,
int y)
Converts screen coordinates to coordinates relative to the object.
|
Point |
windowToScreen(int x,
int y)
Converts coordinates relative to the object to coordinates relative to screen.
|
find, find, find, findAll, findAll, getChildren, getParent, tryFind, tryFind, tryFind, waitProperty, waitProperty
picture, picture, picture
callMethod, callMethod, cast, getProperty, setProperty, toString
int getWidth() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.int getHeight() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.int getScreenLeft() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.int getScreenTop() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.boolean getVisible() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.boolean getVisibleOnScreen() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.boolean getEnabled() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void click() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void click(int clientX, int clientY) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void click(int clientX, int clientY, ShiftKey shift) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.shift
- The button that is pressed when a click is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void clickM() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void clickM(int clientX, int clientY) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void clickM(int clientX, int clientY, ShiftKey shift) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.shift
- The button that is pressed when a click is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void clickR() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void clickR(int clientX, int clientY) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void clickR(int clientX, int clientY, ShiftKey shift) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.shift
- The button that is pressed when a click is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dblClick() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dblClick(int clientX, int clientY) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dblClick(int clientX, int clientY, ShiftKey shift) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.shift
- The button that is pressed when a click is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dblClickM() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dblClickM(int clientX, int clientY) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dblClickM(int clientX, int clientY, ShiftKey shift) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.shift
- The button that is pressed when a click is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dblClickR() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dblClickR(int clientX, int clientY) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dblClickR(int clientX, int clientY, ShiftKey shift) throws InvocationException, HttpException
clientX
- The X coordinate of the click point.clientY
- The Y coordinate of the click point.shift
- The button that is pressed when a click is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void drag(int clientX, int clientY, int toX, int toY) throws InvocationException, HttpException
clientX
- The X coordinate of the start position.clientY
- The Y coordinate of the start position.toX
- The X coordinate of the end position.toY
- The Y coordinate of the end position.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void drag(int clientX, int clientY, int toX, int toY, ShiftKey shift) throws InvocationException, HttpException
clientX
- The X coordinate of the start position.clientY
- The Y coordinate of the start position.toX
- The X coordinate of the end position.toY
- The Y coordinate of the end position.shift
- The button that is pressed when a click is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dragM(int clientX, int clientY, int toX, int toY) throws InvocationException, HttpException
clientX
- The X coordinate of the start position.clientY
- The Y coordinate of the start position.toX
- The X coordinate of the end position.toY
- The Y coordinate of the end position.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dragM(int clientX, int clientY, int toX, int toY, ShiftKey shift) throws InvocationException, HttpException
clientX
- The X coordinate of the start position.clientY
- The Y coordinate of the start position.toX
- The X coordinate of the end position.toY
- The Y coordinate of the end position.shift
- The button that is pressed when a click is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dragR(int clientX, int clientY, int toX, int toY) throws InvocationException, HttpException
clientX
- The X coordinate of the start position.clientY
- The Y coordinate of the start position.toX
- The X coordinate of the end position.toY
- The Y coordinate of the end position.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void dragR(int clientX, int clientY, int toX, int toY, ShiftKey shift) throws InvocationException, HttpException
clientX
- The X coordinate of the start position.clientY
- The Y coordinate of the start position.toX
- The X coordinate of the end position.toY
- The Y coordinate of the end position.shift
- The button that is pressed when a click is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void hoverMouse() throws InvocationException, HttpException
InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void hoverMouse(int clientX, int clientY) throws InvocationException, HttpException
clientX
- The X coordinate of the target position.clientY
- The Y coordinate of the target position.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void keys(String keys) throws InvocationException, HttpException
keys
- The keystrokes to be simulated. Can include alphanumeric characters and special key codes (CRTL, ALT and others). To learn more about the keystroke format, see Simulating Keystrokes in TestLeft documentation.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void mouseWheel(int delta) throws InvocationException, HttpException
delta
- Delta indicates the distance the wheel is rotated (a positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user).InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.void mouseWheel(int delta, ShiftKey shift) throws InvocationException, HttpException
delta
- Delta indicates the distance the wheel is rotated (a positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user).shift
- The button that is pressed when a wheel action is performed.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.Point screenToWindow(int x, int y) throws InvocationException, HttpException
x
- An X coordinate.y
- A Y coordinate.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.Point windowToScreen(int x, int y) throws InvocationException, HttpException
x
- An X coordinate.y
- A Y coordinate.InvocationException
- Will be thrown if invocation fails.HttpException
- Will be thrown if there are network problems.Copyright © 2020 SmartBear Software. All Rights Reserved.