Android-Uiautomator:如何实现双击效果
来源:互联网 发布:iphone清理缓存软件 编辑:程序博客网 时间:2024/06/14 05:35
uiautomator框架测试中,未提供双击API,那如何实现双击的效果呢?
默认每个动作具有默认延时,将默认延时去除,或者缩短即可实现
publicvoidclickFast(intnum,intx,inty){
if(getSYSVersion().matches(".*4\\.4.*")){
long timeout =Configurator.getInstance()
.getActionAcknowledgmentTimeout();
Configurator.getInstance().setActionAcknowledgmentTimeout(0);
for(int i =0;i <num; i++){
device().click(x,y);
}
Configurator.getInstance().setActionAcknowledgmentTimeout(timeout);
}}
如双击,坐标500,500
clickFast(2,500,500);
0 0
- Android-Uiautomator:如何实现双击效果
- Android实现双击退出程序的效果
- 如何调试 android UIAutomator ?
- Android中如何实现双击退出APP
- unity3d中实现双击效果
- asp:listbox双击效果实现
- android如何实现双击返回键退出 的修正版
- android实现双击监听
- Android实现双击退出
- Android实现双击事件
- android UiAutomator如何利用adb install和adb uninstall实现安装和卸载
- android UiAutomator如何获取短信验证码
- 自定义View实现单击,双击效果
- Android中用手势的双击事件实现图片单击放大效果
- 基于UIAutomator+Jenkins Android自动化测试 实现
- 借助 UiAutomator 实现自动 Android* 测试
- 基于UIAutomator+Jenkins Android自动化测试 实现
- android图片缩放双击旋转效果
- 《剑指offer》——矩阵中的路径
- Leetcode || Implement strStr()
- 使用ActionMode实现ListView的多选功能
- method / function
- paip.解决 数据库mysql增加列 字段很慢添加字段很慢
- Android-Uiautomator:如何实现双击效果
- poj acm 2387 Til the Cows Come Home
- Toolbar 标题居中
- 程序员应知道这十大面向对象设计原则
- 迭代器的快速失败与copyonwriteList
- HDU 2189 dp
- ios:The executable was signed with invalid entitlements新设备run出现此问题
- 黑马程序员——基础知识——静态
- Swift(十一、属性)