1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-13 22:28:36 +00:00

Finalise slideshow test

This commit is contained in:
muendelezaji 2016-05-19 18:23:28 +01:00 committed by muendelezaji
parent ac07c359fc
commit 1744050939
2 changed files with 10 additions and 0 deletions

View File

@ -135,6 +135,16 @@ public class UiAutomation extends UxPerfUiAutomation {
clickView(BY_TEXT, document);
clickView(BY_TEXT, "Open", CLASS_BUTTON, true);
sleep(5);
clickView(BY_DESC, "Start slideshow", true);
int centerY = getUiDevice().getDisplayHeight() / 2;
int centerX = getUiDevice().getDisplayWidth() / 2;
int slidesLeft = 10;
while (slidesLeft-- > 0) {
getUiDevice().swipe(centerX + centerX/2, centerY, centerX - centerX/2, centerY, 20);
sleep(2);
}
getUiDevice().pressBack();
getUiDevice().pressBack();
}