如何检索WPF网格中存在的滚动条的自动化ID [英] How to retrive automation ID for scroll bar present in WPF grid

查看:99
本文介绍了如何检索WPF网格中存在的滚动条的自动化ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我正在为WPF网格控制进行编码UI自动化测试。加载到网格中的数据很大。我想使用滚动条向下滚动到最后一行,以执行我无法检索滚动条的自动化ID(检测控件)。如何使用编码的UI自动化滚动条控件?



先谢谢,

harsha

Hi
I''m doing coded UI automation testing for WPF grid control. The data loaded into the grid is huge.I want to scroll down to the last row by using scroll bar, to perform that i''m unable to retrieve automation id ( detect the control) for scroll bar. How can I automate scrollbar control using coded UI?

Thanks in Advance,
harsha

推荐答案

只需找到并选择网格最后一行中的元素,而不是查找滚动条。这应该自动滚动到网格的底部。
Instead of looking for a scrollbar, just find and select an element in the last row of the grid. That should automagically scroll you to the bottom of the grid.


这篇关于如何检索WPF网格中存在的滚动条的自动化ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆