Skip to content

Commit 4243773

Browse files
author
Pier André Parent
committed
Added new Execute Adb Shell keyword
1 parent 9097bb2 commit 4243773

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

AppiumLibrary/keywords/_applicationmanagement.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,15 @@ def execute_async_script(self, script):
214214
"""
215215
return self._current_application().execute_async_script(script)
216216

217+
def execute_adb_shell(self, command, *args):
218+
"""
219+
Execute Adb shell
220+
"""
221+
return self._current_application().execute_script('mobile: shell', {
222+
'command': command,
223+
'args': list(args)
224+
})
225+
217226
def go_back(self):
218227
"""Goes one step backward in the browser history."""
219228
self._current_application().back()

0 commit comments

Comments
 (0)