You are here:
|
Mouse operations
Mouse operations are Interaction Expressions. Use them to perform different kind of clicks, drag & drop, or mouse overs on elements in your system.
Unlike click operations, mouse operations allow you to define the behavior of the mouse.
Mouse operations require the syntax {MOUSE[Action][MoveMethod][OffsetHorizontal][OffsetVertical]}.
Parameter Action
The parameter Action defines which click operation to perform with your mouse. You can use one of the following values:
Value |
Description |
---|---|
CLICK |
Left-click |
LONGCLICK |
Left-click that lasts for two seconds |
DOUBLECLICK |
Double-click |
RIGHTCLICK |
Right-click |
DRAG |
Selects the object you want to reposition. This object must support drag and drop operations. |
DROP |
Drops the object you selected with {DRAG}. |
MOUSEOVER |
Moves the mouse pointer over the control. |
Parameter MoveMethod
The parameter MoveMethod defines how to move the mouse. You can use one of the following values:
Value |
Description |
---|---|
Jump |
The mouse pointer jumps directly to the element you want click. |
Smooth |
The mouse pointer moves smoothly towards the element you want click. |
HorizontalFirst |
The mouse pointer moves along the horizontal axis first. |
VerticalFirst |
The mouse pointer moves along the vertical axis first. |
Offset parameters
The parameters OffsetHorizontal and OffsetVertical define the click position:
Parameter |
Description |
---|---|
OffsetHorizontal |
Required horizontal distance from the top left corner of the button. Specify the distance in pixel or percent. |
OffsetVertical |
Required vertical distance from the top left corner of the button. Specify the distance in pixel or percent. |
This example shows how to use mouse operations in a Step:
-
The Step Example Step performs a right-click on the button Hello.
-
The parameter Jump specifies that the mouse pointer should jump directly to the button.
-
The two Offset parameters specify that the Bot should use an offset of 10% along the horizontal axis and 10% along the vertical axis.
Mouse operations in Example Step