随笔分类 - Uiautomator2
摘要:desired_cap = { "deviceName":"vivo", # 真机名称 "platformName":"android", # 使用的移动端:android、ios "platformVersion":"8.1", # 移动端版本 "appPackage":"com.csksc2b.
阅读全文
摘要:产生以下原因找到了:是因为启动了appium,两者冲突,不能同时使用。 之前讲过怎么安装u2(【Mac安装,ATX基于uiautomator2】之安装步骤)以及使用weditor, 但是经过一段时间,weditor不用的时候再打开发现,报错了: requests.exceptions.Connect
阅读全文
摘要:参考文章: 感谢:cynic (linpengcheng) 《ATX 基于 ATX-Server 的 UI 自动化测试框架》 《ATX-uiautomator2 实现 webview 的操作》 还有感谢另外一位大神: codeskyblue (codeskyblue) 学习大神们!
阅读全文
摘要:不说废话上代码: 具体文章请参考: 感谢:codeskyblue 大神的文章 ATX 《小白入门篇:python uiautomator2 的代码示例 (包含 app 管理,session 控制,toast,htmlreport,unittest ..)》
阅读全文
摘要:Mac系统下安装uiaotumator2: 参考网址:《uiautomator2》以及参考github官方文档 注意:下面有坑,如果你没有下面的问题请直接跳转到 1、安装uiaotumator2命令: 提示报错: Could not install packages due to an Enviro
阅读全文
摘要:上代码:
阅读全文
摘要:具体API可参考:《uiautomator2》以及参考github官方文档 感谢:Ricky_Frog 《Python+uiautomator2手机UI自动化测试实战 -- 2. 用法介绍》 学习API: 《uiautomator2》 对应如图所示: 1、 定位元素: ①ResourceId定位 :
阅读全文
摘要:Ubuntu系统下安装uiautomator2步骤: 1、安装命令: 但是报错: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-fd8i2dr1/uiautomator2/ 后经大神提示
阅读全文
摘要:github学习地址:https://github.com/openatx/uiautomator2 <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> 个人总结的ATX学习资料文章: 1、Ubuntu系统: 《【Ubuntu安
阅读全文