Appium java API (2)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.