mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
GoogleSlides: Fixed bug where settings could not be opened
For some reason although the settings element could be found, clicking on it did not have the desired effect, to solve this the element has been found as a UiObject2 instead.
This commit is contained in:
parent
8acebe12bd
commit
4fac39ada9
Binary file not shown.
@ -21,8 +21,10 @@ import android.os.SystemClock;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
import android.support.test.uiautomator.Configurator;
|
||||
import android.support.test.uiautomator.UiObject;
|
||||
import android.support.test.uiautomator.UiObject2;
|
||||
import android.support.test.uiautomator.UiScrollable;
|
||||
import android.support.test.uiautomator.UiSelector;
|
||||
import android.support.test.uiautomator.By;
|
||||
|
||||
import com.arm.wlauto.uiauto.UxPerfUiAutomation;
|
||||
|
||||
@ -312,7 +314,7 @@ public class UiAutomation extends UxPerfUiAutomation {
|
||||
uiDeviceSwipeHorizontal(0, getDisplayCentreWidth(), getDisplayCentreHeight() / 2, 10);
|
||||
|
||||
// clickUiObject(BY_DESC, "Open navigation drawer");
|
||||
clickUiObject(BY_TEXT, "Settings", true);
|
||||
mDevice.findObject(By.text("Settings")).click();
|
||||
clickUiObject(BY_TEXT, "Create PowerPoint");
|
||||
mDevice.pressBack();
|
||||
logger.stop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user