mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 21:08:51 +00:00
Gmail: Updated to work on new app version.
This commit is contained in:
parent
7eb36b959b
commit
a2eef179ef
Binary file not shown.
@ -129,8 +129,7 @@ public void runUiAutomation() throws Exception {
|
|||||||
ActionLogger logger = new ActionLogger(testTag, parameters);
|
ActionLogger logger = new ActionLogger(testTag, parameters);
|
||||||
|
|
||||||
UiObject conversationView =
|
UiObject conversationView =
|
||||||
mDevice.findObject(new UiSelector().resourceId(packageID + "conversation_list_view")
|
mDevice.findObject(new UiSelector().resourceIdMatches(packageID + "conversation_list.*"));
|
||||||
.className("android.widget.ListView"));
|
|
||||||
if (!conversationView.waitForExists(networkTimeout)) {
|
if (!conversationView.waitForExists(networkTimeout)) {
|
||||||
throw new UiObjectNotFoundException("Could not find \"conversationView\".");
|
throw new UiObjectNotFoundException("Could not find \"conversationView\".");
|
||||||
}
|
}
|
||||||
@ -185,6 +184,12 @@ public void runUiAutomation() throws Exception {
|
|||||||
.className("android.widget.GridView")
|
.className("android.widget.GridView")
|
||||||
.childSelector(new UiSelector().index(0)
|
.childSelector(new UiSelector().index(0)
|
||||||
.className("android.widget.FrameLayout")));
|
.className("android.widget.FrameLayout")));
|
||||||
|
if (!imageFileButton.exists()){
|
||||||
|
imageFileButton =
|
||||||
|
mDevice.findObject(new UiSelector().resourceId("com.android.documentsui:id/dir_list")
|
||||||
|
.childSelector(new UiSelector().index(0)
|
||||||
|
.classNameMatches("android.widget..*Layout")));
|
||||||
|
}
|
||||||
imageFileButton.click();
|
imageFileButton.click();
|
||||||
imageFileButton.waitUntilGone(uiAutoTimeout);
|
imageFileButton.waitUntilGone(uiAutoTimeout);
|
||||||
|
|
||||||
@ -219,9 +224,15 @@ public void runUiAutomation() throws Exception {
|
|||||||
String testTag = "text_body";
|
String testTag = "text_body";
|
||||||
ActionLogger logger = new ActionLogger(testTag, parameters);
|
ActionLogger logger = new ActionLogger(testTag, parameters);
|
||||||
|
|
||||||
UiObject composeField = getUiObjectByText("Compose email", "android.widget.EditText");
|
UiObject composeField = mDevice.findObject(new UiSelector().text("Compose email")
|
||||||
|
.classNameMatches("android.widget.EditText"));
|
||||||
|
if (!composeField.exists()){
|
||||||
|
composeField = mDevice.findObject(new UiSelector().description("Compose email")
|
||||||
|
.classNameMatches("android.view.View"));
|
||||||
|
}
|
||||||
|
|
||||||
logger.start();
|
logger.start();
|
||||||
composeField.setText("This is a test composition");
|
composeField.legacySetText("This is a test composition");
|
||||||
mDevice.pressEnter();
|
mDevice.pressEnter();
|
||||||
logger.stop();
|
logger.stop();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user