Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have a Coded UI test cases written it has some dynamic hyper-link for that it is giving error mention below

CSS
{"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.
Posted
Updated 16-Nov-14 22:50pm
v2

1 solution

got answer

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

from this link[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900