摘要: 首先 需要python 需要安装对应的weditor 版本,windows可能会出现高版本安装失败,需要自行去百度,mac可成功执行 其次插上设备、开发者选项开启,开启usb调试,传输文件格式 在控制台输入 python -m uiautomator2 init,就会自动安装atx软件 控制台默认输 阅读全文
posted @ 2023-06-16 16:48 陈文芝 阅读(281) 评论(0) 推荐(0) 编辑
摘要: def get_current_activity(): """ 获取当前页面的activity :return: """ cmd = 'adb -s {} shell "dumpsys window | grep mCurrentFocus"'.format( get_android_devices 阅读全文
posted @ 2023-06-16 14:48 陈文芝 阅读(477) 评论(0) 推荐(0) 编辑