diff --git a/docs/helpers/Appium.md b/docs/helpers/Appium.md index 9b08f3bd6..46aaa723a 100644 --- a/docs/helpers/Appium.md +++ b/docs/helpers/Appium.md @@ -871,7 +871,7 @@ Close the given application. I.closeApp(); ``` -Returns **[Promise][6]<void>** Appium: support only iOS +Returns **[Promise][6]<void>** Appium: support both Android and iOS ### appendField diff --git a/lib/helper/Appium.js b/lib/helper/Appium.js index adaa81bb3..c0714ca0a 100644 --- a/lib/helper/Appium.js +++ b/lib/helper/Appium.js @@ -1424,10 +1424,10 @@ class Appium extends Webdriver { * * @return {Promise} * - * Appium: support only iOS + * Appium: support both Android and iOS */ async closeApp() { - onlyForApps.call(this, 'iOS'); + onlyForApps.call(this); return this.browser.closeApp(); }