Android自动化工具Monkeyrunner使用(六) —— touch
来源:互联网 发布:免费报税软件 编辑:程序博客网 时间:2024/06/03 08:00
本章主要介绍touch事件
voidtouch ( integer x,integer y, string type)
Sends a touch event specified by type to the screen location specified by x and y.
Arguments
DOWN
,UP
, andDOWN_AND_UP
.stringDOWN
press()
ortouch()
value. Specifies that a DOWN event type should be sent to the device, corresponding to pressing down on a key or touching the screen.
stringUP
press()
ortouch()
value. Specifies that an UP event type should be sent to the device, corresponding to releasing a key or lifting up from the screen.
stringDOWN_AND_UP
press()
,touch()
ortype()
value. Specifies that a DOWN event type followed by an UP event type should be sent to the device, corresponding to typing a key or clicking the screen.
例子:
for i in range(200):
device.touch(100,600,"DOWN_AND_UP")
MonkeyRunner.sleep(5)
device.touch(240,750,"DOWN")
MonkeyRunner.sleep(5)
device.touch(400,750,"UP")
MonkeyRunner.sleep(5)
- Android自动化工具Monkeyrunner使用(六) —— touch
- Android自动化工具Monkeyrunner使用(六) —— 使用log日志功能
- Android自动化工具Monkeyrunner使用(六) —— 根据ID查找对象
- Android自动化工具Monkeyrunner使用(六) —— python 里的import
- Android自动化工具Monkeyrunner使用(六) —— Eclipse + Jython demo
- Android自动化工具Monkeyrunner使用(六) —— Eclipse + Jython 环境配置
- Android自动化工具Monkeyrunner使用(一)
- Android自动化工具Monkeyrunner使用(二)
- Android自动化工具Monkeyrunner使用(三)
- Android自动化工具Monkeyrunner使用(四)
- Android自动化工具Monkeyrunner使用(五)
- Android自动化测试之MonkeyRunner工具(六)
- Android自动化工具Monkeyrunner使用之——ISMS(启动APK并截图查看)
- Android自动化工具Monkeyrunner使用(七) —— 录制、回放脚本
- Android自动化工具Monkeyrunner使用(七) ——在linux环境ubuntu平台上使用Eclipse运行monkeyrunne
- android自动化测试工具---monkeyrunner工具
- android自动化测试——MonkeyRunner
- Android自动化测试——MonkeyRunner
- USC 20121007 组队赛 H题 矩阵乘法
- µC/OS-II内存管理
- 内存管理函数HeapAlloc,LocalAlloc,VirtualAlloc,malloc,new的异同
- GBK编码表
- 打开ev_dbg的log信息
- Android自动化工具Monkeyrunner使用(六) —— touch
- MyEclipse10离线安装SVN插件
- SpringMVC+FreeMarker(FTL)Integration example
- 销售订单隐藏成本价格出口 user-exit
- 未来在哪里
- 一枕落花香
- Python 代码性能优化技巧
- org.hibernate.hql.ast.QuerySyntaxException: is not mapped 异常总结 .
- MYSQL增加用户 并管理特定表