Uiautomator2
已安装atx-agent,怎样启动atx-agent
1.
adb shell /data/local/tmp/atx-agent server --nouia -d --addr 127.0.0.1:7912
2.
在app上点击停止UIAUTOMATOR, 接着软件会退出
3.
再打开APP点击启动UIAUTOMATOR
INSTALL
小米手机安装方法:
CONNECT
D:\platform-tools>adb devices
List of devices attached
62f65841 device
>>>import uiautomator2 as u2
>>> d= u2.connect_usb('62f65841')
>>> d
<uiautomator2.Device object at 0x0000000004955708>
>>> d.info
{'currentPackageName': 'com.github.uiautomator', 'displayHeight': 1920, 'displayRotation': 0, 'displaySizeDpX': 393, 'displaySizeDpY': 698, 'displayWidth': 1080, 'productName': 'helium', 'screenOn': True, 'sdkInt': 24, 'naturalOrientation': True}
>>>