mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-02-26 00:23:03 +08:00
CB-12618: (android) Appium tests: Handle native cling
This commit is contained in:
parent
d0b381aad8
commit
180f7b5510
@ -610,6 +610,15 @@ describe('Camera tests Android.', function () {
|
|||||||
.deviceKeyEvent(BACK_BUTTON)
|
.deviceKeyEvent(BACK_BUTTON)
|
||||||
.elementById('Apps')
|
.elementById('Apps')
|
||||||
.click()
|
.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")')
|
.elementByAndroidUIAutomator('new UiSelector().text("Gallery")')
|
||||||
.click()
|
.click()
|
||||||
.elementByAndroidUIAutomator('new UiSelector().textContains("Pictures")')
|
.elementByAndroidUIAutomator('new UiSelector().textContains("Pictures")')
|
||||||
|
Loading…
Reference in New Issue
Block a user