使用UI Automation实现自动化测试--4.2 (ExpandCollapsePattern)
来源:互联网 发布:jy零食淘宝店 编辑:程序博客网 时间:2024/06/05 21:13
ExpandCollapsePattern
表示以可视方式进行展开(以显示内容)和折叠(以隐藏内容)的控件。例如ComboBox控件支持ExpandCollapsePattern。
ExpandCollapsePattern有两个主要方法:
Expand()方法:隐藏 AutomationElement 的全部子代节点、控件或内容。
Collapse()方法:显示 AutomationElement 的全部子节点、控件或内容。
以下代码是用ExpandCollapsePattern来测试ComboBox控件的Expand和Collapse。
以下代码为被测程序的xaml文件:
Summary
本文主要是对ExpandCollapsePattern 做简单的介绍,并使用ExpandCollapsePattern来操作ComboBox控件,对ComboBox进行Expand和Collapse操作。
- 使用UI Automation实现自动化测试--4.2 (ExpandCollapsePattern)
- 使用 UI Automation 实现自动化测试--4.2
- 使用 UI Automation 实现自动化测试--4.2
- 使用UI Automation实现自动化测试 -1
- 使用UI Automation实现自动化测试 -2
- 使用UI Automation实现自动化测试 -3
- 使用UI Automation实现自动化测试 -4.1
- 使用 UI Automation 实现自动化测试--1
- 使用 UI Automation 实现自动化测试--2
- 使用 UI Automation 实现自动化测试--3
- 使用 UI Automation 实现自动化测试--4.1
- 使用 UI Automation 实现自动化测试--4.3
- 使用 UI Automation 实现自动化测试--4.4
- 使用 UI Automation 实现自动化测试--4.5
- 使用 UI Automation 实现自动化测试--4.5
- 使用 UI Automation 实现自动化测试--4.4
- 使用 UI Automation 实现自动化测试--4.3
- 使用 UI Automation 实现自动化测试--4.1
- IncrediBuild 加速原理
- 使用UI Automation实现自动化测试 -4.1
- android http post请求
- MTK驱动配置
- (转)各种数据库的连接串(总结DSN的使用方法)
- 使用UI Automation实现自动化测试--4.2 (ExpandCollapsePattern)
- 配置MTK工程和incredibuild才能实现分布式编译
- oracle10g动态性能表v$sess_time_model确定当前session的sql语句性能
- CAsyncSocket对象不能跨线程之分析
- 实现光棒效果
- 程序员日志:Android NDK配置
- scat 文件及Flash
- Windows 消息
- java面试题之用最有效率的方法算出2乘以8等於几