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
8 changes: 8 additions & 0 deletions AppiumLibrary/keywords/_android_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ def get_activity(self):
driver = self._current_application()
return driver.current_activity

def get_current_package(self):
"""Retrieves the current package on the device.\n

*Android only.*
"""
driver = self._current_application()
return driver.current_package

def wait_activity(self, activity, timeout, interval=1):
"""Waits for an activity: blocks until target activity presents or until the timeout is reached.\n

Expand Down