1.获取手机控件
a.uiautomatorview
b.adb shell /system/bin/uiautomator dump /sdcard/Download 即当前布局xml文件会dump到/sdcard/Download下面
c.getXml.py脚本,会保存xml到本地
#coding:utf-8
from uiautomator import device as d
if __name__ == '__main__':
d.dump("wyy.xml")
2.对控件进行操作
参考:https://blog.youkuaiyun.com/Eugene_3972/article/details/76629066