??????????????USB??????
?????????????????????
????????????????????????????????USB???????????????Ч??????cmd??????????adb devices??UDID????????????

?????????????????????????
???????????Appium????
???????????cmd?????????
????????鵽??UDID???appium????????????
????#>appium -a 127.0.0.1 -p 4723  –U  6207febc --no-reset
????-U ????????????????????????UDID????????????????鵽???

?????????????????????????????appium???????????????????в????????
????????????appium???????

????????????????д??????
??????????е??????????????????????????????Щ?????ò?????????????demo????demo.py??
????#! /usr/bin/env python
????#coding=utf-8
????import os
????import time
????import unittest
????from selenium import webdriver
????from lib2to3.pgen2.driver import Driver
????from lib2to3.tests.support import driver
????PATH=lambda p:os.path.abspath(os.path.join(os.path.dirname(__file__)??p))
????desired_caps = {}
????desired_caps['platformName'] = 'Android'????#?豸??
????desired_caps['platformVersion'] = '5.1.2'????#?豸???汾
????desired_caps['deviceName'] = 'Lenovo P1c72'????#?豸????
????desired_caps['app'] = PATH('C:\Users\LENOVO\Desktop\StarZone_V2.0.0.apk')??
????#desired_caps['appPackage'] = 'com.xiangchao.starspace'????
????#desired_caps['appActivity'] = 'com.xiangchao.starspace.activity.SplashActivity'
????#??????????app????????·???????????appPackage??appActivity???????
????driver = webdriver.Remote('http://localhost:4723/wd/hub'?? desired_caps)????#???app
????time.sleep(5)????#???app?????????????????????????????????????????????????????λ???????
????driver.find_element_by_id('com.xiangchao.starspace:id/skip').click()
????driver.quit()
??????????cmd????????в?????(python demo.py)???ɡ???????????????????????????????С?
???????????????????й????У?????????????????????Settings??Unlock????Щ????м?????????Settings??Unlock???????????????????н??????????????????????????????
????Appium??Desired Capabilities???????webdriver??Desired Capabilities?????????Щ??????????????????
????automationName?????????????????檔appium??????????Selendroid??
????platformName????????????????iOS?? Android?? orFirefoxOS??
????deviceName??????????豸??????????????????iPhone Simulator?? iPad Simulator?? iPhone Retina 4-inch?? Android Emulator?? Galaxy S4?? etc...
????app??????·????????????·????????????appPackage??appActivity????????????????????????????????????browserName???????????
????browserName?????????????????????Safari' for iOS and 'Chrome'?? 'Chromium'?? or 'Browser' for Android????app???????
????udid?????????id??????1ae203187fc012g??
??????????Щ??????android????????
????appActivity?????????app??Activity?????????MainActivity?? .Settings????????app??????activity????"."??
????appPackage?????????app??java package??????com.example.android.myApp?? com.android.settings??
???????Android app??appActivity
??????????д?????https://testerhome.com/topics/1030???????????в???
????????????apk??????zip?????????????????AndroidManifest.xml????????manifest??activity????????????activity????