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