TA的每日心情 | 擦汗 昨天 09:07 |
---|
签到天数: 527 天 连续签到: 4 天 [LV.9]测试副司令
|
1测试积点
UI测试,自定义的下拉框,不能识别,怎么办?
使用vs的UI测试,点击多个自定义的下拉框(是个组合控件),下拉列表都识别为同一个控件
请问怎么处理?
[GeneratedCode("编码的 UI 测试生成器", "11.0.50727.1")]
public class UIItemWindow3 : WinWindow
{
public UIItemWindow3()
{
#region 搜索条件
this.SearchProperties[WinWindow.PropertyNames.AccessibleName] = "DropDown";
this.SearchProperties.Add(new PropertyExpression(WinWindow.PropertyNames.ClassName, "WindowsForms10.Window", PropertyExpressionOperator.Contains));
#endregion
}
#region Properties
public WinMenu UIDropDownMenu
{
get
{
if ((this.mUIDropDownMenu == null))
{
this.mUIDropDownMenu = new WinMenu(this);
#region 搜索条件
this.mUIDropDownMenu.SearchProperties[WinMenu.PropertyNames.Name] = "DropDown";
#endregion
}
return this.mUIDropDownMenu;
}
}
#endregion
#region Fields
private WinMenu mUIDropDownMenu;
#endregion
}
|
|