Coded UI Test Method failed inconsistently

Posted by Sunitha M on Programmers See other posts from Programmers or by Sunitha M
Published on 2012-10-15T06:13:18Z Indexed on 2012/10/15 9:48 UTC
Read the original article Hit count: 170

Filed under:

The following exception failing my UI automation test.

Message: Test method
CodedUITestMethod1 throw exception:
The playback failed to find the control with the given search properties. Additional Details:
 TechnologyName:  'UIA'
 ControlType:  'MenuItem'
 Name:  'MyViewModel' ---> system.runtime.interopservices.comexception error hresult e_fail has been returned from a call to a COM component

please any one give me a solution for these type of exceptions.

© Programmers or respective owner

Related posts about unit-testing