Skip to content

中文 | English

UIA Guide ​

This document is lengthy and has no English translation yet.

The section outline below mirrors the Chinese source document; see uia-guide.md for the original.

  • 目录
  • 基础概念
    • 什么是 UI Automation
    • 为什么使用 UIA
    • UI 元素树
    • 控件类型
  • 快速开始
    • 获取当前焦点元素
    • 查找并操作控件
  • 元素查找
    • 按名称查找
    • 按 AutomationId 查找
    • 按控件类型查找
    • 专用查找函数
    • 等待元素出现
  • 控件详解
    • Button 按钮
    • Edit 编辑框
    • ComboBox 下拉框
    • List 列表
    • CheckBox 复选框
    • RadioButton 单选按钮
    • Tab 标签页
    • Menu 菜单
    • Tree 树形控件
  • 高级技巧
    • 遍历 UI 树
    • 从窗口句柄/坐标获取元素
    • 事件监听
    • UIElement 对象完整方法列表
    • 完整示例:自动登录