1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01:00

Appshare: Updated to work with new sharing selector name.

On nexus 10 the app share selector has a new name, this commit
checks for either and uses the appropriate one.
This commit is contained in:
Marc Bonnici 2017-02-22 14:36:14 +00:00
parent 7f85da6633
commit 78c1a80a51
2 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,10 @@ public class UiAutomation extends UxPerfUiAutomation {
clickUiObject(BY_DESC, "Share", "android.widget.ImageView");
UiScrollable applicationGrid =
new UiScrollable(new UiSelector().resourceId(googlephotos.getPackageID() + "application_grid"));
if (!applicationGrid.exists()){
applicationGrid =
new UiScrollable(new UiSelector().resourceId(googlephotos.getPackageID() + "share_expander"));
}
UiObject openApp =
new UiObject(new UiSelector().text(appName)
.className("android.widget.TextView"));