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

用于处理本机元素的类的实现(带句柄的窗口)

win32_element_info.HwndElementInfo

class pywinauto.win32_element_info.HwndElementInfo(handle=None)

窗口处理程序的包装器

HwndElementInfo.automation_id

pywinauto.win32_element_info.HwndElementInfo.automation_id
  • 返回元素的 AutomationId

HwndElementInfo.children

pywinauto.win32_element_info.HwndElementInfo.children(**kwargs)
  • 返回窗口的直接子级列表

HwndElementInfo.class_name

pywinauto.win32_element_info.HwndElementInfo.class_name
  • 返回窗口的类名

HwndElementInfo.control_id

pywinauto.win32_element_info.HwndElementInfo.control_id
  • 返回窗口的 ID

HwndElementInfo.control_type

pywinauto.win32_element_info.HwndElementInfo.control_type
  • 元素的返回控制类型

HwndElementInfo.descendants

pywinauto.win32_element_info.HwndElementInfo.descendants(**kwargs)
  • 返回窗口的后代(子树中的所有子项)

HwndElementInfo.dump_window

pywinauto.win32_element_info.HwndElementInfo.dump_window()
  • 将窗口转储为一组属性

HwndElementInfo.enabled

pywinauto.win32_element_info.HwndElementInfo.enabled
  • 如果启用了窗口,则返回 True

HwndElementInfo.from_point

@staticmethod
pywinauto.win32_element_info.HwndElementInfo.from_point(x, y)

HwndElementInfo.full_control_type

pywinauto.win32_element_info.HwndElementInfo.full_control_type
  • 返回元素的控制类型的完整字符串

HwndElementInfo.handle

pywinauto.win32_element_info.HwndElementInfo.handle
  • 返回窗口的把手

HwndElementInfo.iter_children

pywinauto.win32_element_info.HwndElementInfo.iter_children(**kwargs)
  • 返回窗口的直接子项的生成器

HwndElementInfo.name

pywinauto.win32_element_info.HwndElementInfo.name
  • 返回窗口的文本

HwndElementInfo.parent

pywinauto.win32_element_info.HwndElementInfo.parent
  • 返回窗口的父级

HwndElementInfo.process_id

pywinauto.win32_element_info.HwndElementInfo.process_id
  • 返回控制此窗口的进程的 ID

HwndElementInfo.rectangle

pywinauto.win32_element_info.HwndElementInfo.rectangle
  • 返回元素的矩形

HwndElementInfo.rich_text

pywinauto.win32_element_info.HwndElementInfo.rich_text
  • 返回窗口的文本

HwndElementInfo.set_cache_strategy

pywinauto.win32_element_info.HwndElementInfo.set_cache_strategy(cached)
  • 用于为元素的频繁使用属性设置缓存策略。

HwndElementInfo.top_from_point

@staticmethod
pywinauto.win32_element_info.HwndElementInfo.top_from_point(x, y)

HwndElementInfo.visible

pywinauto.win32_element_info.HwndElementInfo.visible
  • 如果窗口可见,则返回 True
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

ょ镜花う水月

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

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

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

打赏作者

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

抵扣说明:

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

余额充值