mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-13 22:28:36 +00:00
Minor updates and some cleanup
This commit is contained in:
parent
7f9a16ba75
commit
ec095d4176
Binary file not shown.
@ -158,14 +158,16 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
template.clickAndWaitForNewWindow();
|
||||
break;
|
||||
|
||||
case DOCTYPE_SLIDES:
|
||||
case DOCTYPE_PPT:
|
||||
// UiObject newPowerpoint = getUiObjectByDescription("New PowerPoint", CLASS_IMAGE_BUTTON);
|
||||
default:
|
||||
UiObject newPowerpoint = getUiObjectByText("New PowerPoint", CLASS_TEXT_VIEW);
|
||||
newPowerpoint.clickAndWaitForNewWindow();
|
||||
// first slide
|
||||
enterTextInSlide("Title", "WORKLOAD AUTOMATION");
|
||||
enterTextInSlide("Subtitle", "Measuring perfomance of different productivity apps on Android OS");
|
||||
saveDocument(docName);
|
||||
/*
|
||||
|
||||
insertSlide("Title and Content");
|
||||
enterTextInSlide("title", "Introduction");
|
||||
enterTextInSlide("Text placeholder", "Welcome to Documentation for Workload Automation");
|
||||
@ -194,7 +196,6 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
insertSlide("Title and Content");
|
||||
enterTextInSlide("title", "Agendas - 2");
|
||||
enterTextInSlide("Text placeholder", DOCUMENTATION_AGENDAS_2);
|
||||
*/
|
||||
|
||||
// get first image in gallery and insert
|
||||
insertSlide("Title Only");
|
||||
@ -216,16 +217,6 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
resize.dragTo(subtitle, 40);
|
||||
shape.dragTo(subtitle, 40);
|
||||
enterTextInSlide("title", "THE END. QUESTIONS?");
|
||||
// view = getViewByDesc("Done");
|
||||
// view = getViewByDesc("Navigate up");
|
||||
// view.clickAndWaitForNewWindow();
|
||||
break;
|
||||
|
||||
case DOCTYPE_SLIDES:
|
||||
default:
|
||||
// UiObject newSlidesFile = getUiObjectByDescription("New Slides", CLASS_IMAGE_BUTTON);
|
||||
UiObject newSlidesFile = getUiObjectByText("New Slides", CLASS_TEXT_VIEW);
|
||||
newSlidesFile.clickAndWaitForNewWindow();
|
||||
break;
|
||||
}
|
||||
sleep(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user