1、卸载app
driver.remove_app('com.tencent.mobileqq')
2、安装app
driver.install_app(r'C:\Users\asus\Desktop\mobileqq_android.apk')
3、判断某个app是否被安装
print(driver.is_app_installed('com.tencent.mobileqq'))
4、关闭初始化中的app
driver.close_app()
5、启动初始化app
driver.launch_app()
6、打印当前activity
print(driver.current_activity)
7、启动多个app
接收包名和activity
driver.start_activity('com.tencent.mobileqq','com.tencent.mobileqq.activity.SplashActivity')
print(driver.current_activity)
8、将app退到后台5s后再启动
driver.background_app(5)
9、调用就格式化(清除数据)
driver.reset()