Skip to content

Commit 3b84d7a

Browse files
authored
fix(appium): closeApp supports both Android/iOS (#4046)
1 parent c158f3b commit 3b84d7a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/helpers/Appium.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ Close the given application.
871871
I.closeApp();
872872
```
873873

874-
Returns **[Promise][6]<void>** Appium: support only iOS
874+
Returns **[Promise][6]<void>** Appium: support both Android and iOS
875875

876876
### appendField
877877

lib/helper/Appium.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,10 +1424,10 @@ class Appium extends Webdriver {
14241424
*
14251425
* @return {Promise<void>}
14261426
*
1427-
* Appium: support only iOS
1427+
* Appium: support both Android and iOS
14281428
*/
14291429
async closeApp() {
1430-
onlyForApps.call(this, 'iOS');
1430+
onlyForApps.call(this);
14311431
return this.browser.closeApp();
14321432
}
14331433

0 commit comments

Comments
 (0)