Uiautomator学习笔记(2) 封装代码 报错误(NllPointerException)

.NullPointerException: Attempt to invoke virtual method 'boolean qq.test.UiautomatorAssistant.ClickById(java.lang.String)' on a null objec

 

空指针错误:

mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
uiautomatorAssistant = new UiautomatorAssistant(mDevice); //mDevice为测试的设备
posted @ 2017-05-11 15:03  liuzhipenglove  阅读(353)  评论(0编辑  收藏  举报