看官网给的文档中 accessibility id: a string corresponding to a recursive element search using the Id/Name that the native Accessibility options utilize. 我就想试试,但是怎么也定位不到,用了官方的 Python 代码 android_simple.py 也定位不到,各位大神这个方法应该怎么用??我试着加了包名也不行 com.example.android.apis:name/Graphics;下面是代码片段和错误提示

driver.findElementsByAccessibilityId(using);
el = self.driver.find_element_by_accessibility_id('Graphics')
info: [BOOTSTRAP] [info] Got command of type ACTION
info: [BOOTSTRAP] [debug] Got command action: find
info: [BOOTSTRAP] [debug] Finding Graphics using ACCESSIBILITY_ID with the contextId:
info: [BOOTSTRAP] [info] Returning result: {"value":"No element found","status":7}
info: Responding to client with error: {"status":7,"value":{"message":"An element could not be located on the page using the given search parameters.","origValue":"No element found"},"sessionId":"5ecdcff9-ed69-4864-bf78-8417b2e70ce9"} POST /wd/hub/session/5ecdcff9-ed69-4864-bf78-8417b2e70ce9/element 500 637ms - 223b


↙↙↙阅读原文可查看相关链接,并与作者交流