编码的UI错误:播放无法找到具有给定搜索属性的控件。 [英] Coded UI Error : The playback failed to find the control with the given search properties.

查看:92
本文介绍了编码的UI错误:播放无法找到具有给定搜索属性的控件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们编写了一个Coded UI测试用例,它有一些动态超链接,因为它提供错误提示下面



 {播放 失败    find     control   with    给定  search   properties   
附加 详细信息:
\\\\ nN技术名称:'Web'
\\\ nControlType:'Hyperlink'
\\\
TagName:'A'
\\\\ n:''
\\\\名称:''
\\\\ n目标:''
\\ nInnerTe xt:'46139'
\\\\ n
失败 to < span class =code-leadattribute> find any control 匹配 search 条件 Id =''&&名字=''&& ControlType ='Hyperlink'&&目标=''&& InnerText ='46139'}

错误 HRESULT E_FAIL 调用返回 to a COM 组件





请帮帮我。



注意:内部文本值46139是动态的。

解决方案

得到答案



uIServicecapability0Hyperlink .SearchProperties.Add(InnerText,Your Value,PropertyExpressionOperator.Contains)



来自link [ ^

We have a Coded UI test cases written it has some dynamic hyper-link for that it is giving error mention below

{"The playback failed to find the control with the given search properties.
Additional Details:
\r\nTechnologyName:  'Web'
\r\nControlType:  'Hyperlink'
\r\nTagName:  'A'
\r\nId:  ''
\r\nName:  ''
\r\nTarget:  ''
\r\nInnerText:  '46139'
\r\n
Failed to find any control that matched the search condition Id='' && Name='' && ControlType='Hyperlink' && Target='' && InnerText='46139'"}

Error HRESULT E_FAIL has been returned from a call to a COM component.



please help me.

note : The inner text value 46139 is dynamic.

解决方案

got answer

uIServicecapability0Hyperlink.SearchProperties.Add("InnerText", "Your Value", PropertyExpressionOperator.Contains)

from this link[^]


这篇关于编码的UI错误:播放无法找到具有给定搜索属性的控件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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