“播放未能找到具有给定搜索属性的控件”运行Coded UI TEST时出错 [英] "The playback failed to find the control with the given search properties " error while running the Coded UI TEST
问题描述
播放无法找到具有给定搜索属性的控件。其他详细信息:
TechnologyName :
'Silverlight'
TechnologyName: 'Silverlight'
ControlType:
'Shell'
ControlType: 'Shell'
在内部异常中,检查异常的ErrorCode属性以确定
COM对象
In the Inner Exception, Check the ErrorCode Property of the exception to determine the HRESULT returned by the COM Object
{"播放无法找到具有给定搜索属性的控件。其他详细信息:\\\ n \\ n技术名称:
'Silverlight'\\\\\ ControlConType: 'Shell'\\ nn"}
{"The playback failed to find the control with the given search properties. Additional Details: \r\nTechnologyName: 'Silverlight'\r\nControlType: 'Shell'\r\n"}
我在编码的ui测试和UIMap.UItest文件中添加了延迟时间
。
I have added delay time in both coded ui test and as well as in UIMap.UItest file .
  ;
我还在uimap中添加了以下代码.cs文件
添加更多搜索参数
I also added below code in uimap.cs file add more search parameters
公共
partial class
UIMap
public partial class UIMap
  ;  
{
{
public UIMap()
public UIMap()
{
{
此 .UIXXXXSuiteWebReviewWindow.SearchConfigurations.Add( SearchConfiguration .AlwaysSearch);
this.UIXXXXSuiteWebReviewWindow.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
< span style ="">
此 .UIConfirmApplicationReWindow.SearchConfigurations.Add( SearchConfiguration .AlwaysSearch);
this.UIConfirmApplicationReWindow.SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);
< span style ="">
}
}
}
}
我们是否需要添加更多等待控件之前?
我们需要添加任何其他搜索参数
推荐答案
PLease共享您遇到问题的示例XAML。
PLease share a sample XAML where you are hitting the issue.
这篇关于“播放未能找到具有给定搜索属性的控件”运行Coded UI TEST时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!