文章目录 例:操作通讯录,添加人员信息,如图所示添加成功 1.打开模拟器,,打开pycharm 2.cmd打开黑窗口输入adb shell dumpsys window | findstr mCurrentFocus此命令 3.点击androidSDK\tools下的uiautomatorviewer.bat对模拟器进行抓包 4.pycharm中通过uiautomatorviewer.bat定位的进行脚本编写 添加信息 5.打开appium软件,点开录制,然后运行pycharm代码,等appium运行,观察模拟器 6.成功 例:操作通讯录,添加人员信息,如图所示添加成功 1.打开模拟器,,打开pycharm 2.cmd打开黑窗口输入adb shell dumpsys window | findstr mCurrentFocus此命令 3.点击androidSDK\tools下的uiautomatorviewer.bat对模拟器进行抓包 4.pycharm中通过uiautomatorviewer.bat定位的进行脚本编写