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为测试的设备