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:
parent
78c1a80a51
commit
9b13f65895
Binary file not shown.
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user