summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlinalex <linalex@google.com>2021-10-08 14:53:07 +0800
committerlinalex <linalex@google.com>2021-10-08 14:53:11 +0800
commit63ba5f16f80bb61d330354eb3abac315e86a49b6 (patch)
treebe9ede1c20580701869f90502c341fcb5d1ed307
parentcb38becadc18e78206248d1fc8747a4c6d8d8589 (diff)
downloadplatform_testing-63ba5f16f80bb61d330354eb3abac315e86a49b6.tar.gz
[CUJ] Modify getWebPage API to public
Bug: 201738027 Test: run cuj/test Change-Id: I67762bba0ee04ec09c1ecdbf8f679155251e29ca
-rw-r--r--libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IChromeHelper.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IChromeHelper.java b/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IChromeHelper.java
index d61727656..1ff75eae0 100644
--- a/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IChromeHelper.java
+++ b/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/IChromeHelper.java
@@ -17,6 +17,7 @@
package android.platform.helpers;
import android.support.test.uiautomator.Direction;
+import android.support.test.uiautomator.UiObject2;
public interface IChromeHelper extends IAppHelper {
public enum MenuItem {
@@ -253,4 +254,13 @@ public interface IChromeHelper extends IAppHelper {
public default void scrollPage(Direction dir, float percent) {
throw new UnsupportedOperationException("Not yet implemented.");
}
+
+ /**
+ * Setup expectations: Chrome is open on a page.
+ *
+ * <p>Get the UiObject2 of the page screen.
+ */
+ public default UiObject2 getWebPage() {
+ throw new UnsupportedOperationException("Not yet implemented.");
+ }
}