diff --git a/appium-tests/android/android.spec.js b/appium-tests/android/android.spec.js index 6b259c3..34e65b5 100644 --- a/appium-tests/android/android.spec.js +++ b/appium-tests/android/android.spec.js @@ -610,6 +610,15 @@ describe('Camera tests Android.', function () { .deviceKeyEvent(BACK_BUTTON) .elementById('Apps') .click() + .then(function () { + return driver + .elementByXPath('//android.widget.Button[@text="OK"]') + .click() + .fail(function () { + // no cling is all right + // it is not a brand new emulator, then + }); + }) .elementByAndroidUIAutomator('new UiSelector().text("Gallery")') .click() .elementByAndroidUIAutomator('new UiSelector().textContains("Pictures")')