Touchaction
Appiumdriver auxiliary classes, mainly for gesture manipulation, such as sliding, long-press, drag and so on. The principle of touchaction is to put a series of actions in a chain, and then pass the chain to the server. After the server accepts the chain, it parses each action and executes it one by one.
Press (Webelement el)
Performs a press operation on the control.
Press (int x, int y)
Press operation at a point with coordinates (x, y)
Press (webelement el, int x, int y)
The press operation is performed on the x-coordinate offset X-units of the upper-left corner of the control El, and y offset Y-units on the left.
Release ()
The release action, which represents an end flag for the series action.
MoveTo (Webelement el)
Target El, move from another point to the target
MoveTo (int x, int y)
Target (x, y) point, move from another point to the target
MoveTo (webelement el, int x, int y)
In the upper-left corner of the control El, the x-axis moves the X-unit to the right, and the y-axis moves down the Y-unit. Target the point and move from another point to that point.
Tap (Webelement el)
Tap on the center point of the control
Tap (int x, int y)
Tap at (x, y) point
Tap (webelement el, int x, int y)
In the upper-left corner of the control El, the x-axis moves the X-unit to the right, and the y-axis moves down the Y-unit. Tap on this point.
Waitaction ()
Represents an empty operation, waiting for a period of time
waitaction (int ms)
Wait ms seconds
Longpress (Webelement el)
Control Long Press
longpress (int x, int y)
Tap Long
Longpress (webelement el, int x, int y)
Offset Point Long Press
Cancel ()
Cancel execution of the action
Perform ()
Perform this action
Appium java API (2)