mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
Update framework to wait for object before dismissing chrome popup
* Added wait for exist for google terms accept. * Reduced wait time for device sync negative button to reduce workload run time.
This commit is contained in:
parent
3be00b296d
commit
c9ddee761a
@ -593,14 +593,15 @@ public class BaseUiAutomation {
|
||||
UiObject accept =
|
||||
mDevice.findObject(new UiSelector().resourceId("com.android.chrome:id/terms_accept")
|
||||
.className("android.widget.Button"));
|
||||
if (accept.exists()){
|
||||
if (accept.waitForExists(3000)){
|
||||
accept.click();
|
||||
UiObject negative =
|
||||
mDevice.findObject(new UiSelector().resourceId("com.android.chrome:id/negative_button")
|
||||
.className("android.widget.Button"));
|
||||
negative.waitForExists(100000);
|
||||
if (negative.waitForExists(10000)) {
|
||||
negative.click();
|
||||
}
|
||||
}
|
||||
UiObject lite =
|
||||
mDevice.findObject(new UiSelector().resourceId("com.android.chrome:id/button_secondary")
|
||||
.className("android.widget.Button"));
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user