mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 03:12:34 +01:00
AndroidDevice: fixing UI hierarchy capture
- renamed the capture method from "capture_view_hierachy" to "capture_ui_hierarchy" to fix typo and make more descriptive. - Change the file extension of the cature file to ".uix" because this is the extension uiautomatorviewer looks for.
This commit is contained in:
@@ -619,7 +619,7 @@ class AndroidDevice(BaseLinuxDevice): # pylint: disable=W0223
|
||||
self.pull_file(on_device_file, filepath)
|
||||
self.delete_file(on_device_file)
|
||||
|
||||
def capture_view_hierachy(self, filepath):
|
||||
def capture_ui_hierarchy(self, filepath):
|
||||
"""Captures the current view hierarchy into the specified file in a XML format."""
|
||||
on_device_file = self.path.join(self.working_directory, 'screen_capture.xml')
|
||||
self.execute('uiautomator dump {}'.format(on_device_file))
|
||||
|
Reference in New Issue
Block a user