![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Uiautomator
文章平均质量分 87
King-wit
初来乍到,一起学习
展开
-
Uiautomator 源码分析之点击事件
uiautomator一个简单的脚本public class UiautomatorTest extends UiAutomatorTestCase{ public void testDemo() throws UiObjectNotFoundException { // 模拟 HOME 键点击事件 getUiDevice().pressHome();...原创 2018-04-08 16:23:28 · 924 阅读 · 0 评论 -
Uiautomator 源码分析之控件获取
Uiautomator一个常用脚本 UiObject allAppsButton = new UiObject(new UiSelector().description("Apps")); // 模拟点击所有应用按钮,并等待所有应用界面起来 allAppsButton.clickAndWaitForNewWindow();分析第一步源码跟踪:1、new U...原创 2018-04-08 18:24:23 · 1190 阅读 · 0 评论