uiautomator中InteractionController学习笔记(8)
来源:互联网 发布:数据分析excel面试题目 编辑:程序博客网 时间:2024/05/21 05:18
4.1版本
InteractionController将用户的键盘事件注入到android系统中,与系统进行交互(电视为什么不能设计成可组装,屏幕多大自己决定,想 多大就多大)
click(int,int)
在某点点击。
clickAndWaitForNewWindow(int,int,long)
点击某点,得带界面信息变化
freezeRotation()/unFreezeRotation()/isNaturalRotation()/setRotationLeft()/setRotationNatural()/setRotationRight()
这些方法在UiDevice里同样存在,名称也是一样的,不再解释,可以返回UiDevice参考。
getSystemLongPressTime()
通过ContentProvider从系统中获得长安时间
injectEventSync(InputEvent)
将用户的输入时间注入到系统中
isScreenOn()
判断屏幕是后点亮
longTap(int,int)
长按某一点
scrollSwipe(int,int,int,int,int)
sendKey(int,int)
sentText(String)
发送字符串
sleepDevice()/wakeDevice()
如果屏幕是亮的,则按power键让屏幕休眠/与sleep相反
swipe(Point[],int)
与UiDevice相同
swipe(int,int,int,int,int)
与UiDevice相同
touchDown(int,int)/touchMove(int,int)/touchUp(int,int)
按下/拖动/抬起。
0 0
- uiautomator中InteractionController学习笔记(8)
- uiautomator中UiSelector学习笔记(3)
- uiautomator中UiCollection学习笔记(4)
- uiautomator中UiWatcher学习笔记(6)
- uiautomator中AccessibilityNodeInfoDumper学习笔记(7)
- uiautomator中QueryControlller学习笔记(9)
- uiautomator中UiAutomatorBridge学习笔记(10)
- uiautomator中UiSelector学习笔记(3)
- uiautomator中UiCollection学习笔记(4)
- uiautomator中UiWatcher学习笔记(6)
- uiautomator中AccessibilityNodeInfoDumper学习笔记(7)
- Android uiautomator 学习笔记
- Uiautomator学习笔记
- UiAutomator学习笔记
- UIAutomator学习笔记V0.1
- uiautomator中的UiObject学习笔记
- uiautomator中的UiDevice学习笔记(1)
- uiautomator中的UiObject学习笔记(2)
- win 虚拟主机echop301设置方法
- 黑马程序员_C语言的函数
- Lua的pcall错误处理
- Hibernate —— HQL与QBC的区别
- 黑马程序员_C语言的数组与指针
- uiautomator中InteractionController学习笔记(8)
- 元素选择问题
- PHP绘图配置
- Debug vs. Release
- Spring依赖注入 — 集合属性配置
- POJ 1329 三角形外接圆
- linux kernel 2.6.10 编译
- easyui中的panel 在火狐浏览器中显示不全
- ecshop 404设置方法