# pywinauto.element_info
應處理不同后端元素的類的接口
## *class* `pywinauto.element_info.ElementInfo`
元素的抽象包裝
> `children`(*\*\*kwargs*)
返回元素的子元素
> `class_name`
Return the class name of the element
> `control_id`
Return the ID of the control
> `descendants`(*\*\*kwargs*)
返回元素的后代
> `dump_window`()
將元素轉儲到一組屬性
> `enabled`
如果元素已啟用,則返回True
> *static* `filter_with_depth`(*elements*, *root*, *depth*)
返回具有相對于根的特定深度級別的過濾元素
> `framework_id`
返回元素的框架
> `handle`
Return the handle of the element
> `has_depth`(*root*, *depth*)
如果元素具有相對于根的特定深度級別,則返回True
> `iter_children`(*\*\*kwargs*)
迭代元素的子級
> `iter_descendants`(*\*\*kwargs*)
迭代元素的后代
> `name`
Return the name of the element
> `parent`
返回元素的父元素
> `process_id`
返回控制此元素的進程的ID
> `rectangle`
返回元素的矩形
> `rich_text`
返回元素的文本
> `set_cache_strategy`(*cached*)
為元素的常用屬性設置緩存策略
> `visible`
如果元素可見,則返回True
- 什么是Pywinauto
- 入門指南
- 如何
- 等待長時間操作
- 遠程執行指南
- 每種不同控制類型可用的方法
- 貢獻者
- 開發筆記
- 待辦項目
- 更新日志
- 基本用戶輸入模塊
- pywinauto.mouse
- pywinauto.keyboard
- 主要用戶模塊
- pywinauto.application
- pywinauto.findbestmatch
- pywinauto.findwindows
- pywinauto.timings
- 特定功能
- pywinauto.clipboard
- pywinauto.win32_hooks
- 控件參考
- pywinauto.base_wrapper
- pywinauto.controls.hwndwrapper
- pywinauto.controls.menuwrapper
- pywinauto.controls.common_controls
- pywinauto.controls.win32_controls
- pywinauto.controls.uiawrapper
- pywinauto.controls.uia_controls
- Pre-supplied Tests
- pywinauto.tests.allcontrols
- pywinauto.tests.asianhotkey
- pywinauto.tests.comboboxdroppedheight
- pywinauto.tests.comparetoreffont
- pywinauto.tests.leadtrailspaces
- pywinauto.tests.miscvalues
- pywinauto.tests.missalignment
- pywinauto.tests.missingextrastring
- pywinauto.tests.overlapping
- pywinauto.tests.repeatedhotkey
- pywinauto.tests.translation
- pywinauto.tests.truncation
- 后端內部實施模塊
- pywinauto.backend
- pywinauto.element_info
- pywinauto.win32_element_info
- pywinauto.uia_element_info
- pywinauto.uia_defines
- 內部模塊
- pywinauto.controlproperties
- pywinauto.handleprops
- pywinauto.xml_helpers
- pywinauto.fuzzydict
- pywinauto.actionlogger
- pywinauto.sysinfo
- pywinauto.remote_memory_block