自动化测试安卓之uiautomator2(python3.7)
1.环境准备下载python3.7.4https://www.python.org/downloads/安装python然后更新pippython -m pip install --upgrade pip安装uiautomator2pip3 install -U uiautomator2连接安卓手机打开开发者模式,开启调试模式安装手机客户端工具python...
·
1.环境准备
下载python3.7.4
https://www.python.org/downloads/
安装python
然后更新pip
python -m pip install --upgrade pip
安装uiautomator2
pip3 install -U uiautomator2
连接安卓手机打开开发者模式,开启调试模式
安装手机客户端工具
python -m uiautomator2 init
打开开发工具编写以下代码
import uiautomator2 as u2
# connect to device
d = u2.connect()
print(d.info)
更多推荐



所有评论(0)