# pywinauto.uia\_element\_info
用于處理UI元素的類的實現(基于UI自動化API)
## *class* `pywinauto.uia_element_info.UIAElementInfo(handle_or_elem=None, cache_enable=False)`
UI element wrapper for IUIAutomation API
> `automation_id`
返回元素的AutomationId
> `children`(*\*\*kwargs*)
返回只包含元素的直接子級的列表
* **kwargs** 是按進程,class_name,control_type,content_only或title減少列表的標準。
> `class_name`
Return class name of the element
> `control_id`
Return ControlId of the element if it has a handle
> `control_type`
Return control type of element
> `descendants`(*\*\*kwargs*)
Return a list of all descendant children of the element
> * **kwargs** is a criteria to reduce a list by process, class\_name, control\_type, content\_only and/or title.
> `dump_window`()
Dump window to a set of properties
> `element`
Return AutomationElement’s instance
> `enabled`
Check if the element is enabled
> `framework_id`
Return FrameworkId of the element
> *classmethod* `from_point`(*x*, *y*)
> `handle`
Return handle of the element
> `iter_children`(*\*\*kwargs*)
Return a generator of only immediate children of the element
* **kwargs** is a criteria to reduce a list by process, class\_name, control\_type, content\_only and/or title.
> `name`
Return name of the element
> `parent`
Return parent of the element
> `process_id`
Return ProcessId of the element
> `rectangle`
Return rectangle of the element
> `rich_text`
> Return rich\_text of the element
> `runtime_id`
Return Runtime ID (hashable value but may be different from run to run)
> `set_cache_strategy`(*cached=None*)
Setup a cache strategy for frequently used attributes
> *classmethod* `top_from_point`(*x*, *y*)
> `visible`
Check if the element is visible
## `pywinauto.uia_element_info.`elements_from_uia_array(ptrs, cache_enable=False)
從IUIAutomationElementArray構建UIAElementInfo元素列表
- 什么是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