windows平台安装uiautomator2环境和weditor定位工具

windows平台安装uiautomator2环境和weditor定位工具

uiautomator2的安装直接看github就行,
链接:https://github.com/openatx/uiautomator2

QUICK START

先准备一台(不要两台)开启了开发者选项的安卓手机,连接上电脑,确保执行adb devices可以看到连接上的设备。

运行pip3 install -U uiautomator2   安装uiautomator2;

————or————

# Since uiautomator2 is still under development, you have to add --pre to install the development version
pip install --upgrade --pre uiautomator2

# Or you can install directly from github source
git clone https://github.com/openatx/uiautomator2
pip install -e uiautomator2

测试是否安装成功:

uiautomator2 --help

连接手机(设备)之后执行:来初始化手机上的设备环境:

python -m uiautomator2 init

——————————————————————————

weditor的安装:

git clone https://github.com/openatx/weditor

继续执行:

pip3 install -e weditor

然后确认是否安装成功了:

weditor --help 

启动weditor

python -m weditor

————ok,安装好了。有需要再补充。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
要在PyCharm中安装uiautomator2,您可以按照以下步骤进行操作: 1. 打开PyCharm终端。 2. 在终端中输入以下命令来安装uiautomator2:pip install --upgrade --pre uiautomator2。 3. 如果安装过程中出现超时错误,您可以尝试使用以下命令:pip --default-timeout=1000 install -U --pre uiautomator2。 4. 安装uiautomator2后,您可能还需要安装weditor来进行元素定位。在终端中输入以下命令来安装weditor:pip install weditor。 5. 连接您的手机到电脑上,并打开手机的开发者选项中的USB调试功能,确保电脑能够读取到adb命令。 6. 在终端中输入以下命令来初始化uiautomator2:python -m uiautomator2 init。 7. 安装完成后,在终端中输入以下命令来启动weditor:python -m weditor。这将自动打开浏览器,并显示weditor的界面。 请注意,您需要确保已经正确安装了Python和PyCharm,并且您的电脑和手机已经正确连接。另外,如果在安装过程中遇到其他问题,您可以参考引用中的文章或者在相关论坛上寻求帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Python安装uiautomator2下载安装教程,史上最详细](https://blog.csdn.net/qq_42681203/article/details/113242775)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [uiautomator2安装及介绍](https://blog.csdn.net/liao_11/article/details/124266251)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值