Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions AppiumLibrary/keywords/_applicationmanagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,16 +308,17 @@ def activate_application(self, app_id):
"""
self._current_application().activate_app(app_id)

def terminate_application(self, app_id):
def terminate_application(self, app_id, timeout=500):
"""
Terminate the given app on the device

Args:
- app_id - BundleId for iOS. Package name for Android.
- timeout - Timeout for the terminate operation in milliseconds (default 500)

New in AppiumLibrary v2
"""
return self._current_application().terminate_app(app_id)
return self._current_application().terminate_app(app_id, timeout=timeout)

def stop_application(self, app_id, timeout=5000, include_stderr=True):
"""
Expand Down