Pywinauto-0.6.8 pywinauto.element_info 内部实现模块 电脑端软件GUI鼠标键盘Python自动化办公、测试、重复性工作制定库

用于处理不同后端元素的类的接口。

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ょ镜花う水月

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值