diff options
Diffstat (limited to 'tests/common/src/com/android/tv/testing/uihelper/SidePanelHelper.java')
-rw-r--r-- | tests/common/src/com/android/tv/testing/uihelper/SidePanelHelper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/common/src/com/android/tv/testing/uihelper/SidePanelHelper.java b/tests/common/src/com/android/tv/testing/uihelper/SidePanelHelper.java index 66edd4bb..2d4f9b2f 100644 --- a/tests/common/src/com/android/tv/testing/uihelper/SidePanelHelper.java +++ b/tests/common/src/com/android/tv/testing/uihelper/SidePanelHelper.java @@ -42,6 +42,10 @@ public class SidePanelHelper extends BaseUiDeviceHelper { .hasDescendant(ByResource.text(mTargetResources, titleResId)); } + public BySelector byViewText(int textResId) { + return By.hasDescendant(ByResource.text(mTargetResources, textResId)); + } + public UiObject2 assertNavigateToItem(int resId) { String title = mTargetResources.getString(resId); return assertNavigateToItem(title); |