From 43d1ddcb73ba29076864fe6aee69eab8d6deebc8 Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Fri, 1 Dec 2023 17:31:33 +0100 Subject: [PATCH] fix(appium): closeApp supports both Android/iOS --- docs/helpers/Appium.md | 2 +- lib/helper/Appium.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); }