locked
Unable to find the top level element of the control RRS feed

  • Question

  • Hi,

    i get exception error "Unable to find the top level element of the control" when i run cuit test to click a tab in ribbon.Can any one suggest me any work around

    • Moved by niveditabawa_MSFT Saturday, December 8, 2012 8:58 AM moving this thread to the UI Testing forums so as to get better support. (From:Testing with Visual Studio Test Manager (MTM))
    Wednesday, December 5, 2012 6:07 AM

Answers

  • The last line of the log you provided contains the text "Unable to find Windows Internet Explorer window with 'BIA:Discount - Windows Internet Explorer' in the title.". Some web applications change the title of the Internet Explorer window even though parts of the page appear to stay the same. The window title can also change as you move from one tabbed page to another.

    Your problem might be solved by changing the search properties to allow for changes in the window title. Either by using the actual title, or by using an unchanging part of the title and the "contains" comparator rather than "equals".

    Regards

    Adrian

    • Marked as answer by ramsid Wednesday, December 12, 2012 11:29 AM
    Wednesday, December 12, 2012 9:36 AM

All replies

  • Hi ramsid,

    Thank you for your post.

    Can you run the Coded UI test properly via VS?

    What application are you testing?

    Is there any detail error message?

    If anything is unclear, please free feel to let me know.

    Regards,


    Lily Wu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, December 6, 2012 1:41 AM
    Moderator
  • W, 3120, 15, 2012/12/12, 12:49:15.363, 21306003497128, QTAgent32.exe, ExtensionFramework : A Technology Manager with name Web is already registered.
    E, 3120, 15, 2012/12/12, 12:49:16.191, 21308315538440, QTAgent32.exe, LoadLibrary() : Unable to find the resource 37382 from assembly C:\WINDOWS\system32\en-US\ieframe.dll.mui: Error1814
    E, 3120, 15, 2012/12/12, 12:49:16.207, 21308359499826, QTAgent32.exe, LoadLibrary() : Unable to find the resource 41728 from assembly C:\WINDOWS\system32\en-US\ieframe.dll.mui: Error1814
    E, 3120, 15, 2012/12/12, 12:49:16.300, 21308641822650, QTAgent32.exe, LoadIEStrings() - Could not find user32 resource assembly in en-US or en-US
    W, 3120, 15, 2012/12/12, 12:49:16.800, 21310010777300, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name=>'BIA' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:16.800, 21310022166013, QTAgent32.exe, Playback - {1} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name=>'BIA' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:17.129, 21310933609539, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFA3.png 
    W, 3120, 15, 2012/12/12, 12:49:17.129, 21310942851121, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:17.269, 21311332603652, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 874 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:17.316, 21311481627373, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name=>'BIA' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:17.332, 21311495363417, QTAgent32.exe, Playback - {2} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name=>'BIA' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:17.582, 21312226779473, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFA4.png 
    W, 3120, 15, 2012/12/12, 12:49:17.597, 21312264377327, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:17.832, 21312924543351, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 562 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:18.441, 21314605031930, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name=>'BIA' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:18.441, 21314611560207, QTAgent32.exe, Playback - {3} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name=>'BIA' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:18.707, 21315338900422, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFA5.png 
    W, 3120, 15, 2012/12/12, 12:49:18.707, 21315348234761, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:18.785, 21315572922301, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 756 ms. Expected it to take maximum 500 ms.
    E, 3120, 15, 2012/12/12, 12:49:18.800, 21315589808716, QTAgent32.exe, Exception: System.Runtime.InteropServices.COMException Message: Error HRESULT E_FAIL has been returned from a call to a COM component. Stack Trace: at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IRPFPlayback.FindAllScreenElements(IScreenElement pScreenElementStart, String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth, Object[]& foundDescendants) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindTopLevelWindowHelper(String queryId) BaseExceptionMessage: Error HRESULT E_FAIL has been returned from a call to a COM component. 
    W, 3120, 15, 2012/12/12, 12:49:20.191, 21319493440840, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:20.191, 21319499604221, QTAgent32.exe, Playback - {4} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:20.394, 21320070539334, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFA6.png 
    W, 3120, 15, 2012/12/12, 12:49:20.394, 21320080295339, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:20.457, 21320233256833, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 779 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:20.504, 21320361449268, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:20.504, 21320367922175, QTAgent32.exe, Playback - {5} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:20.707, 21320931427887, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFA7.png 
    W, 3120, 15, 2012/12/12, 12:49:20.707, 21320938092790, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:21.129, 21322094197985, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:21.129, 21322099981777, QTAgent32.exe, Playback - {6} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:21.332, 21322671634922, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFA8.png 
    W, 3120, 15, 2012/12/12, 12:49:21.332, 21322677983467, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:21.379, 21322829821027, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 620 ms. Expected it to take maximum 500 ms.
    E, 3120, 15, 2012/12/12, 12:49:21.394, 21322835215248, QTAgent32.exe, Exception: System.Runtime.InteropServices.COMException Message: Error HRESULT E_FAIL has been returned from a call to a COM component. Stack Trace: at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IRPFPlayback.FindAllScreenElements(IScreenElement pScreenElementStart, String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth, Object[]& foundDescendants) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindTopLevelWindowHelper(String queryId) BaseExceptionMessage: Error HRESULT E_FAIL has been returned from a call to a COM component. 
    W, 3120, 15, 2012/12/12, 12:49:22.160, 21325005530332, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name=>'BIA' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:22.160, 21325011352869, QTAgent32.exe, Playback - {7} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name=>'BIA' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:22.410, 21325672509428, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFA9.png 
    W, 3120, 15, 2012/12/12, 12:49:22.410, 21325682361718, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:22.488, 21325911361552, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 832 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:22.988, 21327302404114, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name=>'BIA' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:22.988, 21327308156707, QTAgent32.exe, Playback - {8} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name=>'BIA' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:23.254, 21328046066313, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFAA.png 
    W, 3120, 15, 2012/12/12, 12:49:23.254, 21328066603515, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:23.347, 21328308969268, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 854 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:23.832, 21329656743136, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:24.910, 21332677863980, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:25.660, 21334769118194, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:26.582, 21337347564337, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name=>'BIA' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:26.582, 21337353260307, QTAgent32.exe, Playback - {9} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name=>'BIA' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:26.785, 21337912653848, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFAB.png 
    W, 3120, 15, 2012/12/12, 12:49:26.785, 21337922096743, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:26.847, 21338073565326, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 3492 ms. Expected it to take maximum 500 ms.
    E, 3120, 15, 2012/12/12, 12:49:26.847, 21338079108668, QTAgent32.exe, Exception: System.Runtime.InteropServices.COMException Message: Error HRESULT E_FAIL has been returned from a call to a COM component. Stack Trace: at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IRPFPlayback.FindAllScreenElements(IScreenElement pScreenElementStart, String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth, Object[]& foundDescendants) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindTopLevelWindowHelper(String queryId) BaseExceptionMessage: Error HRESULT E_FAIL has been returned from a call to a COM component. 
    W, 3120, 15, 2012/12/12, 12:49:27.394, 21339621940777, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:27.394, 21339627679650, QTAgent32.exe, Playback - {10} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:27.597, 21340192289108, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFAC.png 
    W, 3120, 15, 2012/12/12, 12:49:27.613, 21340205374887, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:27.660, 21340354040810, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 604 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:28.113, 21341627620019, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:28.113, 21341633354041, QTAgent32.exe, Playback - {11} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:28.363, 21342340544259, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFAD.png 
    W, 3120, 15, 2012/12/12, 12:49:28.379, 21342354495147, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:28.472, 21342634242608, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 813 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:28.926, 21343895735176, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:29.941, 21346737284404, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:30.676, 21348791419438, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:31.535, 21351198569295, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:31.551, 21351204290178, QTAgent32.exe, Playback - {12} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:31.738, 21351764042014, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFAE.png 
    W, 3120, 15, 2012/12/12, 12:49:31.754, 21351770295128, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:31.801, 21351926550878, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 3323 ms. Expected it to take maximum 500 ms.
    E, 3120, 15, 2012/12/12, 12:49:31.801, 21351931948046, QTAgent32.exe, Exception: System.Runtime.InteropServices.COMException Message: Error HRESULT E_FAIL has been returned from a call to a COM component. Stack Trace: at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IRPFPlayback.FindAllScreenElements(IScreenElement pScreenElementStart, String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth, Object[]& foundDescendants) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindTopLevelWindowHelper(String queryId) BaseExceptionMessage: Error HRESULT E_FAIL has been returned from a call to a COM component. 
    W, 3120, 15, 2012/12/12, 12:49:32.332, 21353422663580, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name=>'BIA' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:32.347, 21353428316248, QTAgent32.exe, Playback - {13} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name=>'BIA' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:32.551, 21353994425386, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFAF.png 
    W, 3120, 15, 2012/12/12, 12:49:32.551, 21354000617726, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:32.597, 21354151708484, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 603 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:33.051, 21355418969780, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name=>'BIA' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:33.051, 21355424729702, QTAgent32.exe, Playback - {14} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name=>'BIA' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:33.254, 21355989429215, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFB0.png 
    W, 3120, 15, 2012/12/12, 12:49:33.254, 21355996018609, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:33.347, 21356243928215, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 746 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:33.894, 21357748645786, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:34.894, 21360545874654, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:35.629, 21362600842968, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:36.629, 21365402216319, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:37.222, 21367079911695, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name=>'BIA' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:37.222, 21367085681452, QTAgent32.exe, Playback - {15} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name=>'BIA' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:37.426, 21367651157874, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFB1.png 
    W, 3120, 15, 2012/12/12, 12:49:37.441, 21367657481191, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:37.488, 21367812799032, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 4139 ms. Expected it to take maximum 500 ms.
    E, 3120, 15, 2012/12/12, 12:49:37.488, 21367818203522, QTAgent32.exe, Exception: System.Runtime.InteropServices.COMException Message: Error HRESULT E_FAIL has been returned from a call to a COM component. Stack Trace: at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IRPFPlayback.FindAllScreenElements(IScreenElement pScreenElementStart, String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth, Object[]& foundDescendants) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindTopLevelWindowHelper(String queryId) BaseExceptionMessage: Error HRESULT E_FAIL has been returned from a call to a COM component. 
    W, 3120, 15, 2012/12/12, 12:49:38.019, 21369306926667, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:38.035, 21369312736331, QTAgent32.exe, Playback - {16} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:38.269, 21369979208585, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFB2.png 
    W, 3120, 15, 2012/12/12, 12:49:38.285, 21370040850347, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:38.379, 21370272506730, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 683 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:38.847, 21371594186145, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:38.847, 21371599868500, QTAgent32.exe, Playback - {17} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:39.097, 21372295860923, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFB3.png 
    W, 3120, 15, 2012/12/12, 12:49:39.097, 21372305827992, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:39.191, 21372553764562, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 811 ms. Expected it to take maximum 500 ms.
    W, 3120, 15, 2012/12/12, 12:49:39.644, 21373815447271, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:40.660, 21376662066515, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:41.410, 21378779349767, QTAgent32.exe, Playback - [WARNING] Internal warning: Smart Match failed 
    W, 3120, 15, 2012/12/12, 12:49:42.301, 21381255010885, QTAgent32.exe, Playback - [WARNING] Internal warning: Window Not Found: ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame' 
    E, 3120, 15, 2012/12/12, 12:49:42.301, 21381260706113, QTAgent32.exe, Playback - {18} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;ControlType='Window' && Name='BIA:Discount - Windows Internet Explorer' && ClassName='IEFrame') (The object specified was not found.) 
    E, 3120, 15, 2012/12/12, 12:49:42.504, 21381826111422, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\rmm\Local Settings\Temp\UITestLogs\LastRun\RPFB4.png 
    W, 3120, 15, 2012/12/12, 12:49:42.504, 21381832452253, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId 
    W, 3120, 15, 2012/12/12, 12:49:42.566, 21381987125583, QTAgent32.exe, PERF WARNING: FindTopLevelWindowHelper::FindAllDescendents: took 3372 ms. Expected it to take maximum 500 ms.
    E, 3120, 15, 2012/12/12, 12:49:42.566, 21381992683296, QTAgent32.exe, Exception: System.Runtime.InteropServices.COMException Message: Error HRESULT E_FAIL has been returned from a call to a COM component. Stack Trace: at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IRPFPlayback.FindAllScreenElements(IScreenElement pScreenElementStart, String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth, Object[]& foundDescendants) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindTopLevelWindowHelper(String queryId) BaseExceptionMessage: Error HRESULT E_FAIL has been returned from a call to a COM component. 
    E, 3120, 15, 2012/12/12, 12:49:42.988, 21383148222821, QTAgent32.exe, AL: Playback Error: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: Unable to find the top level element of the control ---> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: Unable to find Windows Internet Explorer window with 'BIA:Discount - Windows Internet Explorer' in the title. ---> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: TechnologyName: 'MSAA' ControlType: 'Window' Name: 'BIA:Discount - Windows Internet Explorer' ClassName: 'IEFrame' ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component. at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IRPFPlayback.FindAllScreenElements(IScreenElement pScreenElementStart, String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth, Object[]& foundDescendants) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindTopLevelWindowHelper(String queryId) at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindFromPartialQueryId(String queryId) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl..ctor(String queryId) --- End of inner exception stack trace --- at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapControlNotFoundException(COMException ex, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context) at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String queryId) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl..ctor(String queryId) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FromQueryId(String queryId) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.SearchTopLevelWindow(ISearchArgument topLevelSearchArg, String topLevelElementQueryId) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetTitleUpdatedTopLevelWindow(ISearchArgument topLevelSearchArg, String queryId, IList`1 windowTitles) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetTopLevelElement(Boolean useCache, Boolean useCacheOnly, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetElement(Boolean useCache, ISearchArgument searchArg) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.Search(ISearchArgument searchArg) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindInternal() at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Find() at Microsoft.VisualStudio.TestTools.UITesting.IEBrowserService.Locate(PropertyExpressionCollection searchProperties, PropertyExpressionCollection filterProperties, Boolean findAll) --- End of inner exception stack trace --- at Microsoft.VisualStudio.TestTools.UITesting.IEBrowserService.Locate(PropertyExpressionCollection searchProperties, PropertyExpressionCollection filterProperties, Boolean findAll) at Microsoft.VisualStudio.TestTools.UITesting.IEBrowserFactory.Locate(PropertyExpressionCollection searchProperties, PropertyExpressionCollection filterProperties) at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.Locate(PropertyExpressionCollection searchProperties, PropertyExpressionCollection filterProperties) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.SearchTopLevelWindow(ISearchArgument topLevelSearchArg, String topLevelElementQueryId) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.SearchUsingMultipleTitles(ISearchArgument topLevelSearchArg, QueryId topLevelQueryId, IList`1 windowTitles) --- End of inner exception stack trace --- at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.SearchUsingMultipleTitles(ISearchArgument topLevelSearchArg, QueryId topLevelQueryId, IList`1 windowTitles) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetTitleUpdatedTopLevelWindow(ISearchArgument topLevelSearchArg, String queryId, IList`1 windowTitles) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetTopLevelElement(Boolean useCache, Boolean useCacheOnly, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetUITestControlRecursive(Boolean useCache, Boolean alwaysSearch, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetUITestControlRecursive(Boolean useCache, Boolean alwaysSearch, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetUITestControlRecursive(Boolean useCache, Boolean alwaysSearch, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetElement(Boolean useCache, ISearchArgument searchArg) at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.Search(ISearchArgument searchArg) at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindInternal() at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindControlIfNecessary() at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates) at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate) at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementationWrapper(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)

    Wednesday, December 12, 2012 7:25 AM
  • Hi ,

    Am working on web based application through vs2010.please find the error log above and provide me work around please.

    Wednesday, December 12, 2012 7:26 AM
  • The last line of the log you provided contains the text "Unable to find Windows Internet Explorer window with 'BIA:Discount - Windows Internet Explorer' in the title.". Some web applications change the title of the Internet Explorer window even though parts of the page appear to stay the same. The window title can also change as you move from one tabbed page to another.

    Your problem might be solved by changing the search properties to allow for changes in the window title. Either by using the actual title, or by using an unchanging part of the title and the "contains" comparator rather than "equals".

    Regards

    Adrian

    • Marked as answer by ramsid Wednesday, December 12, 2012 11:29 AM
    Wednesday, December 12, 2012 9:36 AM
  • Hi,

    Ya it worked when i changed the tittle to contains.

    cheers.

    Wednesday, December 12, 2012 11:30 AM