mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00: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:
parent
7f85da6633
commit
78c1a80a51
Binary file not shown.
@ -120,6 +120,10 @@ public class UiAutomation extends UxPerfUiAutomation {
|
|||||||
clickUiObject(BY_DESC, "Share", "android.widget.ImageView");
|
clickUiObject(BY_DESC, "Share", "android.widget.ImageView");
|
||||||
UiScrollable applicationGrid =
|
UiScrollable applicationGrid =
|
||||||
new UiScrollable(new UiSelector().resourceId(googlephotos.getPackageID() + "application_grid"));
|
new UiScrollable(new UiSelector().resourceId(googlephotos.getPackageID() + "application_grid"));
|
||||||
|
if (!applicationGrid.exists()){
|
||||||
|
applicationGrid =
|
||||||
|
new UiScrollable(new UiSelector().resourceId(googlephotos.getPackageID() + "share_expander"));
|
||||||
|
}
|
||||||
UiObject openApp =
|
UiObject openApp =
|
||||||
new UiObject(new UiSelector().text(appName)
|
new UiObject(new UiSelector().text(appName)
|
||||||
.className("android.widget.TextView"));
|
.className("android.widget.TextView"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user