Appium Concise Tutorials (5)--appium client methods at a glance

Source: Internet
Author: User
Tags appium

Appium client expands native Webdriver client approach

The following is a Java code example, simply over the Appium client to provide a new approach for mobile use

    • Resetapp ()
    • Getappstring ()
    • Sendkeyevent ()
    • CurrentActivity ()
    • Pullfile ()
    • Pushfile ()
    • Pullfolder ()
    • Hidekeyboard ()
    • Runappinbackground ()
    • Performtouchaction ()
    • Performmultitouchaction ()
    • Tap ()
    • Swipe ()
    • Pinch ()
    • Zoom ()
    • Getnamedtextfield ()
    • Isappinstalled ()
    • Installapp ()
    • Removeapp ()
    • Launchapp ()
    • Closeapp ()
    • Endtestcoverage ()
    • Lockscreen ()
    • Shake ()
    • Complexfind ()
    • ScrollTo ()
    • Scrolltoexact ()
    • Opennotifications ()
    • Context switching:. Context (),. Getcontexthandles (), GetContext ())

The new locator

    • Findelementbyaccessibilityid ()
    • Findelementsbyaccessibilityid ()
    • Findelementbyiosuiautomation ()
    • Findelementsbyiosuiautomation ()
    • Findelementbyandroiduiautomator ()
    • Findelementsbyandroiduiautomator ()

These methods cover 3 major categories:

    • Driver extensions: such as adding resetapp and other ways to manipulate apps
    • Action extension: Add some mobile-specific action (how to describe it, equivalent to mobile-specific operations), such as Swipe,shake (well, with this method can let the code help you Shake it), etc.;
    • Locator extension: Added some mobile-specific positioning strategies

In the next section, we'll start by introducing the Android emulator using Appium.

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.