pywinauto.element_info 内部实现模块
- element_info.ElementInfo
- ElementInfo.children
- ElementInfo.class_name
- ElementInfo.control_id
- ElementInfo.descendants
- ElementInfo.dump_window
- ElementInfo.enabled
- ElementInfo.filter_with_depth
- ElementInfo.framework_id
- ElementInfo.handle
- ElementInfo.has_depth
- ElementInfo.iter_children
- ElementInfo.iter_descendants
- ElementInfo.name
- ElementInfo.parent
- ElementInfo.process_id
- ElementInfo.rectangle
- ElementInfo.rich_text
- ElementInfo.set_cache_strategy
- ElementInfo.visible
用于处理不同后端元素的类的接口。
element_info.ElementInfo
class pywinauto.element_info.ElementInfo
元素的抽象包装器类。
ElementInfo.children
pywinauto.element_info.ElementInfo.children(**kwargs)
- 返回元素的子元素
ElementInfo.class_name
pywinauto.element_info.ElementInfo.class_name
- 返回元素的类名
ElementInfo.control_id
pywinauto.element_info.ElementInfo.control_id
- 返回控件的 ID
ElementInfo.descendants
pywinauto.element_info.ElementInfo.descendants(**kwargs)
- 返回元素的后代
ElementInfo.dump_window
pywinauto.element_info.ElementInfo.dump_window()
- 将元素转储到一组属性
ElementInfo.enabled
pywinauto.element_info.ElementInfo.enabled
- 如果启用了元素,则返回 True
ElementInfo.filter_with_depth
@staticmethod
pywinauto.element_info.ElementInfo.filter_with_depth(elements, root, depth)
- 返回相对于根具有特定深度级别的过滤元素
ElementInfo.framework_id
pywinauto.element_info.ElementInfo.framework_id
- 返回元素的框架
ElementInfo.handle
pywinauto.element_info.ElementInfo.handle
- 返回元素的句柄
ElementInfo.has_depth
pywinauto.element_info.ElementInfo.has_depth(root, depth)
- 如果元素相对于根具有特定的深度级别,则返回 True
ElementInfo.iter_children
pywinauto.element_info.ElementInfo.iter_children(**kwargs)
- 遍历元素的子元素
ElementInfo.iter_descendants
pywinauto.element_info.ElementInfo.iter_descendants(**kwargs)
- 遍历元素的后代
ElementInfo.name
pywinauto.element_info.ElementInfo.name
- 返回元素的名称
ElementInfo.parent
pywinauto.element_info.ElementInfo.parent
- 返回元素的父级
ElementInfo.process_id
pywinauto.element_info.ElementInfo.process_id
- 返回控制此元素的进程的 ID
ElementInfo.rectangle
pywinauto.element_info.ElementInfo.rectangle
- 返回元素的矩形
ElementInfo.rich_text
pywinauto.element_info.ElementInfo.rich_text
- 返回元素的文本
ElementInfo.set_cache_strategy
pywinauto.element_info.ElementInfo.set_cache_strategy
为元素的频繁使用属性设置缓存策略。
ElementInfo.visible
pywinauto.element_info.ElementInfo.visible
- 如果元素可见,则返回 True