Appium + python

Source: Internet
Author: User

1. Install: node. js-appium   node.js   install node.js  first. node. JS Official website:https://nodejs.org/     PIP Install appium-python-client2.demo#coding=utf-8from Appium Import webdriverdesired_caps = {}desired_caps[' platformname '] = ' Android ' desired_caps[' platformversion '] = ' 5.0.1 ' desired_caps[' devicename '] = ' Demo ' desired_caps[' apppackage '] = ' com.android.calculator2 ' desired_caps[' Appactivity '] = '. Calculator ' Driver = webdriver. Remote (' Http://localhost:4723/wd/hub ';, desired_caps) Driver.find_element_by_name ("1"). Click () driver.find_ Element_by_name ("5"). Click () driver.find_element_by_name ("9"). Click () driver.find_element_by_name ("delete"). Click () driver.find_element_by_name ("9"). Click () driver.find_element_by_name ("5"). Click () driver.find_element_by_ Name ("+"). Click () driver.find_element_by_name ("6"). Click () driver.find_element_by_name ("="). Click () driver.quit () 3.android Simulator does not start up, appium error (Android environment variable is not set up)   Run Demo error is also Android environment is not set good   andoid_home = c:\android& NBsP;  %android_home%\platform-tools;%android_home%\tools;4.android Simulator is not displayed in AVD (ANDROID environment variable is not set well)    andoid_sdk_home = c:\android  5. Get the package name of the application
    • ADB shell PM List package-f
    • ADB shell PM List package-3-F #获取第三方apk的包
    • adb Shell Dumpsys Window | findstr mcurrent #需要先打开应用程序

Appium + python

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.