#获取标题的文本text的属性值attrs = driver.find_elements_by_id("com.android.settings:id/title")for attr in attrs: print(attr.get_attribute('text'))