Python Uiautomator2 与weditor 安装

随声附和 提交于 2020-01-18 03:38:52

 Linux

pip install uiautomator2

DESKTOP-R5E7NDM:~ # pip install uiautomator2
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting uiautomator2
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d2/40/bfec52584d8304875b98fc92d3c145b472377628ed20bdcaa68bc65ac6d2/uiautomator2-2.4.3.tar.gz (666kB)
     |████████████████████████████████| 675kB 2.3MB/s 

 Windows10

PS C:\Windows\system32> pip install uiautomator2
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting uiautomator2
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d2/40/bfec52584d8304875b98fc92d3c145b472377628ed20bdcaa68bc65ac6d2/uiautomator2-2.4.3.tar.gz (666kB)
     |████████████████████████████████| 675kB 2.2MB/s

初始化

 电脑连接上一个手机或多个手机, 确保adb已经添加到环境变量中。

python -m uiautomator2 init

 安装完成,设备上会多一个ATX的应用。

weditor

pip install --pre --upgrade weditor
pip install weditor
pip install -U weditor
python -m weditor

 http://localhost:17310/

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!