use of android.support.test.uiautomator.UiObject in project cw-omnibus by commonsguy.
the class ListTests method testAdd.
@Test
public void testAdd() throws UiObjectNotFoundException {
UiObject add = device.findObject(new UiSelector().text("Word"));
add.setText("snicklefritz");
device.pressEnter();
UiScrollable words = new UiScrollable(new UiSelector().className("android.widget.ListView"));
words.setAsVerticalList();
Assert.assertNotNull("Could not find snicklefritz", words.getChildByText(new UiSelector().className("android.widget.TextView"), "snicklefritz"));
}
use of android.support.test.uiautomator.UiObject in project platform_frameworks_base by android.
the class UiBot method assertInActionMode.
public void assertInActionMode(boolean inActionMode) {
UiObject actionModeBar = findActionModeBar();
assertEquals(inActionMode, actionModeBar.exists());
}
use of android.support.test.uiautomator.UiObject in project platform_frameworks_base by android.
the class UiBot method findDialogOkButton.
public UiObject findDialogOkButton() {
UiObject object = findObject("android:id/content", "android:id/button1");
object.waitForExists(mTimeout);
return object;
}
use of android.support.test.uiautomator.UiObject in project platform_frameworks_base by android.
the class UiBot method findDownloadRetryDialog.
public UiObject findDownloadRetryDialog() {
UiSelector selector = new UiSelector().text("Couldn't download");
UiObject title = mDevice.findObject(selector);
title.waitForExists(mTimeout);
return title;
}
use of android.support.test.uiautomator.UiObject in project platform_frameworks_base by android.
the class DirectoryListBot method assertDocumentsCount.
public void assertDocumentsCount(int count) throws UiObjectNotFoundException {
UiObject docsList = findDocumentsList();
assertEquals(count, docsList.getChildCount());
}
Aggregations