【发布时间】:2016-06-22 16:38:17
【问题描述】:
我必须使用 UIautomator 编写一个测试用例才能将其从最近的应用程序中删除。我正在尝试下面的代码,但不确定“应用程序的 id”应该是什么。我尝试运行 uiautomatorviewer 并且所有应用程序都显示相同的 resourceId .
uiDevice.pressRecentApps();
UiObject app = uiDevice.findObject(new UiSelector().resourceId("The id of the app"));
app.swipeLeft(100);
【问题讨论】:
标签: android