1)由于uiautomator2目前只支持从URL安装APK,那么要安装本地的APK就需要借助于Python的os函数

2)具体方式如下:

import os
os.system("adb install E:\\测试资源\\apk\\baiduliulanqi.apk")

3)uiautomator2安装APK方式

d.app_install('http://some-domain.com/some.apk')

备注:https://www.jianshu.com/p/3bacaeab06b2 //adb命令大全

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2021-08-23
  • 2021-11-20
  • 2021-11-19
  • 2021-06-13
  • 2022-12-23
猜你喜欢
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2021-08-18
  • 2021-05-17
相关资源
相似解决方案