1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-21 20:38:57 +00:00

AppShare: Added check to see if additional back press is required.

On some devices after signing into skype, the back button press only
hides the keyboard and a second is required to return to the previous
app.
This commit is contained in:
Marc Bonnici 2017-02-22 15:50:31 +00:00
parent 78c1a80a51
commit 9b13f65895
2 changed files with 8 additions and 0 deletions

View File

@ -60,6 +60,14 @@ public class UiAutomation extends UxPerfUiAutomation {
// Skype won't allow us to login and share on first visit so invoke // Skype won't allow us to login and share on first visit so invoke
// once more from googlephotos // once more from googlephotos
pressBack(); pressBack();
// On some devices the first back press only hides the keyboard, check if
// another is needed.
UiObject googlephotosShare = new UiObject(new UiSelector().packageName(
parameters.getString("googlephotos_package")));
if (!googlephotosShare.exists()){
pressBack();
}
sendToSkype(contactName); sendToSkype(contactName);
unsetScreenOrientation(); unsetScreenOrientation();