Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'bounds' ,bounds = elem.attrib["bounds"][1:-1].split("][") #100

Open
timeisgoing opened this issue Jan 7, 2025 · 1 comment

Comments

@timeisgoing
Copy link


[<Element 'hierarchy' at 0x10d29eac0>, <Element 'node' at 0x10d29ed40>]


Traceback (most recent call last):
File "/Users/tt/Downloads/AppAgent/scripts/step_recorder.py", line 95, in
traverse_tree(xml_path, focusable_list, "focusable", True)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tt/Downloads/AppAgent/scripts/and_controller.py", line 68, in traverse_tree
parent_prefix = get_id_from_element(path[-2])
File "/Users/tt/Downloads/AppAgent/scripts/and_controller.py", line 42, in get_id_from_element
bounds = elem.attrib["bounds"][1:-1].split("][")
~~~~~~~~~~~^^^^^^^^^^
KeyError: 'bounds'

另外我的用的本机的android studio,和这个有关系吗?

@maoinbupt
Copy link

+1同问

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants