扩展行上的编码的UI测试查找控件 [英] Coded UI Test Finding Controls On Expanded Row

查看:94
本文介绍了扩展行上的编码的UI测试查找控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为WPF应用程序编写一些已编码的ui测试,并且已进入该应用程序的一部分,该应用程序包含具有折叠和扩展行的数据网格。

I'm trying to write some coded ui tests for a WPF application and have gotten to part of the application that contains a datagrid with collapsing and expanding rows.

我能够使用手工编码的测试在折叠行上找到控件并与之交互,但是运气不好,没有找到扩展部分中的任何控件的行。在此类控件上使用十字准线可显示该项目在UIItemRow,UIItemCustom(类名Uia.DataGridDetailsPresenter)下,然后在目标控件下。我不确定如何告诉测试进行搜索以找到这些控件。

I am able to find and interact with controls on the collapsed rows fine using hand-coded tests but haven't had any luck finding any of the controls in the expanded part of the row. Using the crosshairs on such a control shows the item to be under UIItemRow, UIItemCustom (class name Uia.DataGridDetailsPresenter), and then the target control. I'm not sure on how to tell the tests to search to find these controls.

推荐答案

在UITest文件中,选中搜索属性和过滤器属性,我不确定您的确切问题,但通常可以解决搜索控件的问题。

In the UITest file check the Search Properties and Filter Properties, I'm not sure your exact problem but it usually fixes problems with searching for controls.

这篇关于扩展行上的编码的UI测试查找控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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