UiAutomatorTestCase在android25上被弃用
来源:6-7 UiConnection对象功能详解

weixin_慕九州6212301
2019-01-14
为什么Java中UiAutomator自动化,用到的UiAutomatorTestCase在android25上被弃用了,是有什么代替的么
写回答
1回答
-
城下秋草
2019-01-14
是的。现在用getInstance代替可直接获取device对象
mDevice = UiDevice.getInstance(getInstrumentation());
UiObject allAppsButton = mDevice .findObject(new UiSelector().description("Apps"));00
相似问题