仅选择表中的可见行 [英] Only visible rows in a table are selected

查看:81
本文介绍了仅选择表中的可见行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在Visual Studio Enterprise 2015中使用CodedUI,我们正在测试一个动态更新表的应用程序。在测试用例结束时,我使用以下代码获取此表的内容...


WinClient OrdersDataPanel = this.AppMainWindow.ConsolesPanel.TableForOrders.UIDataPanelClient;

UITestControlCollection rowcontrol = new UITestControlCollection();
$
rowcontrol = OrdersDataPanel.GetChildren();


foreach(UITestControl行in rowcontrol)

{

    string row = rows.ToString();

    Console.WriteLine("> {0}",row);

}



仅限遗憾选择12行,这是当时可见的行数。但是,此相同的代码用于选择表中的所有行。我试图重新排序表,以便最近的订单首先显示,然后滚动浏览
窗口。但无济于事。 


是否有特定版本的.Net可以使用或者还有什么我可以尝试的吗?


谢谢,


John。



解决方案

更新......这曾经用于我们软件的旧版本,它使用的版本使用DevExpress 15.2.9,但后来更新为DevExpress 17.1.3


Hi,

Using CodedUI in Visual studio Enterprise 2015 we are testing an application that has a table being updated dynamically. At the end of the test case I grab the contents of this table using the following code...

WinClient OrdersDataPanel = this.AppMainWindow.ConsolesPanel.TableForOrders.UIDataPanelClient;
UITestControlCollection rowcontrol = new UITestControlCollection();
rowcontrol = OrdersDataPanel.GetChildren();

foreach (UITestControl rows in rowcontrol)
{
    string row = rows.ToString();
    Console.WriteLine("> {0}", row);
}

Unfortunately only 12 rows are selected, which is the amount of rows visible at the time. However, this same code used to select all the rows in the table. I've tried to reorder the table so the more recent orders appear first and thus scroll through the window. But to no avail.. 

Is there a specific version of .Net that this works with or is there anything else I can try?

Thanks,

John.

解决方案

To update... this used to work in an older version of our software, the version it worked in used DevExpress 15.2.9, but has since been updated to DevExpress 17.1.3.


这篇关于仅选择表中的可见行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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