You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We in our team have faced some problem: before our test have started(and testButler was initialised) google play services have have crashed - so System Dialog appeared and test did not pass
Is there any instrument which allows testButler to close already opened dialogs?
Should it be used when testButler is starting?
P.S. We have made a solution based on uiautomator - but I am not sure it is the best one:
UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
UiObject crashMessageView = uiDevice.findObject(new UiSelector().resourceId(("android:id/message")));
if (crashMessageView != null) {
try {
TestLog.w("Crash alert is found = " + crashMessageView.getText());
uiDevice.findObject(new UiSelector().resourceId(("android:id/button1"))).click();
} catch (UiObjectNotFoundException e) {
TestLog.w("Could not click on crash dialog\n " + e);
}
}
The text was updated successfully, but these errors were encountered:
We in our team have faced some problem: before our test have started(and testButler was initialised) google play services have have crashed - so System Dialog appeared and test did not pass
Is there any instrument which allows testButler to close already opened dialogs?
Should it be used when testButler is starting?
P.S. We have made a solution based on
uiautomator
- but I am not sure it is the best one:The text was updated successfully, but these errors were encountered: