代码

  1. from appium import webdriver
  2. desired_caps={
  3. "platformName":"android",
  4. "platformVersion":"10",
  5. "deviceName":"emulator-5556",
  6. "appPackage":"com.android.dialer",
  7. "appActivity":".main.impl.MainActivity",
  8. "noReset":True
  9. }
  10. driver = webdriver.Remote("http://127.0.0.1:4723/wd/hub",desired_capabilities=desired_caps)

配置参考:http://appium.io/docs/en/writing-running-appium/caps/index.html

视频

11-启动应用配置.mp4 (28.29MB)