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
{{ message }}
Repository navigation
Appium: Method closeApp() is allowed for iOS only, though it works with Android #2849
I want to use I.closeApp() in an Appium test against Android device.
Appium docs for closeApp() says that it's allowed on Android/UiAutomator
What do you get instead?
CodeceptJS allows it for iOS only. node_modules/codeceptjs/docs/build/Appium.js:
/** * Close the given application. * * ```js * I.closeApp(); * ``` * * Appium: support only iOS */asynccloseApp(){onlyForApps.call(this,'iOS');returnthis.browser.closeApp();}
Note that I created the same method (without blocking of Android platform) in my custom helper and it works well with Android:
Activity
mirao commentedon Mar 24, 2021
Also CodeceptJS docs says that only iOS is supported: https://codecept.io/helpers/Appium.html#closeapp