当许多网格行在屏幕外时,如何获取所有网格行(codedui) [英] How to obtain all grid rows when many grid rows are offscreen (codedui)

查看:70
本文介绍了当许多网格行在屏幕外时,如何获取所有网格行(codedui)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网格,其行超出了屏幕的底部。  Coededui似乎无法抓取所有行,因为它们不可见。

I have a grid which rows extend beyond the bottom of the screen.  Coededui doesn't seem to be able to grab all rows since they are not visible.

如果不可见,有没有办法在下一行进行编码滚动?

Is there a way to make codedui scroll while getting next row if not visible?

网格有一个包含行的DataPanel。

The grid has a DataPanel containing the rows.

当列超出右边时,我基本上遇到同样的问题屏幕的一侧。

I basically have the same problem when the columns extend past the right side of the screen.

NR

推荐答案

嗨NR,

>>如果不可见,有没有办法在获取下一行时进行编码滚动?

对于下一行,您想要对一个特定单元格进行一些操作吗?通常,我们可以使用编码的UI测试构建来记录它,以及何时播放Coded UI无需手动拖动滚动条即可自动定位。

For the next row, you want to do some operation to one particular cell right? Usually, we could use coded UI test build to record it, and when it's playing back Coded UI could automatically located without manually drag the scroll bar.

如果完整控制树未搜索网格行,则编码用户界面在播放时不会找到它们,如果这些行不是   ;显示在 屏幕上。

If the rows of grid are NOT searched by complete control tree, coded UI would not find them while playing back if the rows are not displayed on the screen.

所以我想知道你是如何测试代码的,你是否搜索了关于层次结构的控件?

So I wonder how is you testing code like, do you search the control regarding to the hierarchy?

正如您所提到的那样 DataPanel 包含行,如果我的理解正确,则每一行都是DataPanel的Child控件。 所以如果DataPanel已显示在屏幕上,即使是在它们下面的一些单元格也不可见,但是如果基于父容器DataPanel搜索它们,则仍然应该找到它们。

As you mentioned the DataPanel contains the rows, then every row is the Child control of DataPanel if my understanding is correct. So if the DataPanel has displayed on the screen, even some cells under them are not visible, coded UI still should find them if it's searched based on the parent container DataPanel.

 

问候,

Fletcher


这篇关于当许多网格行在屏幕外时,如何获取所有网格行(codedui)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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