UI测试,自定义的下拉框,不能识别,怎么办?
UI测试,自定义的下拉框,不能识别,怎么办?使用vs的UI测试,点击多个自定义的下拉框(是个组合控件),下拉列表都识别为同一个控件
请问怎么处理?
public class UIItemWindow3 : WinWindow
{
public UIItemWindow3()
{
#region 搜索条件
this.SearchProperties = "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 = "DropDown";
#endregion
}
return this.mUIDropDownMenu;
}
}
#endregion
#region Fields
private WinMenu mUIDropDownMenu;
#endregion
}
元素识别不到 xpath进行识别
页:
[1]