RPA provides 3 ways to simulate clicking:
- Tap Element: Locate and click the current element through the DOM elements of the UI tree.
- Tap(x, y): Locate the click position through the X and Y axis coordinates of the current screen.
- Click via text recognition (OCR): Click by recognizing the text position on the current screen.
The following details the Tap(x, y) function.
Coordinates
- X (Number)
- Y (Number)
You can get X and Y coordinate values in the cloud phone via the developer tools.
Coordinate Random Offset (Number)
Default is 0. When an offset value is set, the click position will be randomly offset up, down, left, or right within the offset range each time.
For example, if X: 50, Y: 100 is set, and the random coordinate offset is 10, then the range for X is 40px–60px, and the range for Y is 90px–110px.
Tap Type
- Single Tap
- Double Tap
- Long Press
- When Long Press is selected, you can set [Press Duration] in milliseconds.
Delay After Tap
Output Parameters
- None
Execution Log
- Start Time
- End Time
- Duration (ms)
- Status (Success/Failure)
For example, on the cloud phone desktop, there is a Google Play Store. Through the developer tools, the center point coordinates are found to be (X: 927, Y: 1326). Parameters are as follows:
- Coordinates
- X: "927"
- Y: "1326"
- Coordinate Random Offset: "0"
- Tap Type: "Single Tap"
- Delay After Tap: "0"
Swipe Page