随笔分类 -  UIAutomator2

摘要:安装指定版本: pip install weditor==0.6.3 阅读全文
posted @ 2022-11-12 22:21 GSY921 阅读(57) 评论(0) 推荐(0)
摘要:添加到右键菜单,很方便。 做个记录:请移步原文 阅读全文
posted @ 2019-08-17 19:50 GSY921 阅读(421) 评论(0) 推荐(0)
摘要:Git-atx2官网地址,默认已有python3环境 1.安装rethinkdb 安装db:mac上安装很简单,执行brew install rethinkdb 启动db:nohup rethinkdb & 2.安装atx-server 下载atx2项目文件到本地:git clone https:/ 阅读全文
posted @ 2019-08-12 15:32 GSY921 阅读(695) 评论(0) 推荐(0)
摘要:安装过程(开源官方:https://github.com/openstf/stf) 基本工具准备brew,nvm 1.安装依赖库(jdk8官网下载直接安装即可) brew install graphicsmagick zeromq protobuf yasm pkg-config cmake ret 阅读全文
posted @ 2019-08-11 21:06 GSY921 阅读(605) 评论(0) 推荐(0)
摘要:原文请参考,很详细:hao1032/adbui 非常详细,感谢整理!!首先了解下 adb命令大全,adb最全的命令 阅读全文
posted @ 2019-08-05 18:49 GSY921 阅读(990) 评论(0) 推荐(0)
摘要:1.UI对象识别器Selector 用法d(text='Clock', className='android.widget.TextView') 支持以下参数,详细信息可参考UiSelector Java doc text, textContains, textMatches, textStarts 阅读全文
posted @ 2019-08-01 21:18 GSY921 阅读(7680) 评论(1) 推荐(1)
摘要:1.设备屏幕事件 熄灭屏幕d.screen_off() 唤醒屏幕d.screen_on() 屏蔽状态d.info.get('screenOn')#返回True or False 解锁屏幕d.unlock()#安卓7.0试了可以,安卓9.0就不行了,实际行为是 1.启动activity: com.gi 阅读全文
posted @ 2019-08-01 16:48 GSY921 阅读(4840) 评论(0) 推荐(0)
摘要:检查并维持设备端守护进程处于运行状态,应该是重启了atx守护进程:d.healthcheck() 1.隐式等待 import uiautomator2 as u2serialno = '7f3dec60'd = u2.connect_usb(serialno)d.implicitly_wait(3. 阅读全文
posted @ 2019-07-31 21:33 GSY921 阅读(3023) 评论(0) 推荐(0)
摘要:记录一下自己的偿试过程,内容来自:https://github.com/openatx/uiautomator2 d.service("uiautomator").stop()是因为,安卓上的UiAutomator是独享的,一旦一个服务使用了它,其他人就不让碰了。 所以 appium, macaca 阅读全文
posted @ 2019-07-31 17:36 GSY921 阅读(5031) 评论(0) 推荐(0)
摘要:参考来源:https://www.cnblogs.com/c-x-a/p/11176066.html,有部分不适合当前版本的做了修改 运行uiautomator2 init初始化报错:AttributeError: module 'collections' has no attribute 'Mut 阅读全文
posted @ 2019-07-31 11:23 GSY921 阅读(2943) 评论(1) 推荐(1)
摘要:基础环境准备(以下都是在Mac机上搭建的) 1.android sdk安装&配置 很完美的一个资源下载网:tools.android-studio.org,下载所需的包(我下的zip包直接解压即可) adb环境变量配置,编辑文件:vi ~/.bash_profile(若没有此文件直接touch创建) 阅读全文
posted @ 2019-07-09 11:29 GSY921 阅读(1530) 评论(0) 推荐(0)