locked
Coded UI tests fail on our wpf application RRS feed

  • Question

  • our tests keep failing with the following error

    Test method TestProject6.CodedUITest1.CodedUITestMethod1 threw exception:
    Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
    TechnologyName:  'UIA'
    ControlType:  'Edit'
    AutomationId:  '_firstName'
     Search may have failed at '_mainMenu' TabList as it may have virtualized children. If the control being searched is descendant of '_mainMenu' TabList then including it as the parent container may solve the problem. ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.

    I have even created my own coded ui test and it still fails with the same error. our UI is layed out in this fashion we have GRID->TAB CONTROL->TAB ITEM->TABTIEM CONTENT IS A USER CONTROL RECORDPROC->WHICH HAS A GRID->GIRD HAS A DIFF USER CONTROL SELECPAT->which has a GROUP BOX->and the groupbox CONTAINS A USER CONTROL PATFILT->WHICH CONTAINS A STACKPANEL WITH A BUNCH OF EDIT CONTROLS

    i am not able to access anything beyond the tab items. It always gives me the above error. we are using wpf 4.0 this is blocking our automation.  Can someone help me out?

    Thursday, March 25, 2010 1:51 AM

Answers

  • Hi

    The reason why this fails is because the SearchProperties of the control are not good enough. The only workaround is to point the cross hair to the control and immediately navigate to the parent. This will ensure that you work on the live object and UICL dont need to search for the control afresh.

    Can you try navigating immeditely as soon as you point to the element?

    Thanks

    Siddhartha

    Friday, March 26, 2010 4:45 AM
    Moderator

All replies

  • Hi

    What is the hirerachy of the Edit Control (for which the search is failing)? Does it have TabList and TabPage as the container element?

    If not you need to add those as container element of the edit Box.

    Thanks

    Siddhartha

    Thursday, March 25, 2010 4:50 AM
    Moderator
  • the hierarchy for the edit controls looks similar to this

    GRID->TAB CONTROL->TAB ITEM->TABTIEM CONTENT IS A USER CONTROL RECORDPROC->WHICH HAS A GRID->GIRD HAS A DIFF USER CONTROL SELECPAT->which has a GROUP BOX->and the groupbox CONTAINS A USER CONTROL PATFILT->WHICH CONTAINS A STACKPANEL WITH A BUNCH OF EDIT CONTROLS  (these eidt controls fail on search).

    At runtime ui control map looks like this  UICadwellCascadeIntraoWindow.UISearchFilterGroup.UI_patientFilterCustom.UI_hospitalIDEdit

    The warnings in the debug trace below (bold underlined text) shows that the query fails right after the main menu item. As you can see all the ui elements have automations id's and yet the test breaks.

     

    Here is the Debug Trace: -----------------------------------------

    W, 3196, 40, 2010/03/24, 18:19:30.687, 21897217627, QTAgent32.exe, <a class=success>Playback - {1} [SUCCESS] MouseButtonClick - "[UIA]ControlType='Custom' && ClassName='Uia.MainMenuItem' && AutomationId='_mainMenuItem'"
    \0</a>
    W, 3196, 40, 2010/03/24, 18:19:30.967, 21898036460, QTAgent32.exe, <a class=success>Playback - {2} [SUCCESS] MouseButtonClick - "[UIA]ControlType='Custom' && ClassName='Uia.MainMenuItem' && AutomationId='_mainMenuItem'"
    \0</a>
    W, 3196, 40, 2010/03/24, 18:19:31.628, 21899882249, QTAgent32.exe, <a class=success>Playback - {3} [SUCCESS] MouseButtonClick - "[UIA]ControlType='Custom' && ClassName='Uia.MainMenuItem' && AutomationId='_mainMenuItem'"
    \0</a>

    W, 3196, 40, 2010/03/24, 18:19:33.297, 21904792971, QTAgent32.exe, Playback - [WARNING] Internal warning: Element "[UIA]ControlType='Group' && AutomationId='_searchGroupBox' && ClassName='Uia.GroupBox'" was not found, so all intermediate elements were ignored. To improve performance replace this element Id with another Id or exclude it from QueryId. If this element is the target element, replace or remove intermediate elements
    \0

    W, 3196, 40, 2010/03/24, 18:19:35.918, 21912422599, QTAgent32.exe, Playback - [WARNING] Internal warning:Search failure: <[UIA]ControlType='Group' && AutomationId='_searchGroupBox' && ClassName='Uia.GroupBox'> | Performed (4) search retries, UI element not found
    \0
    E, 3196, 40, 2010/03/24, 18:19:35.918, 21912423024, QTAgent32.exe, <a class=failure>Playback - {4} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;[UIA]ControlType='Group' && AutomationId='_searchGroupBox' && ClassName='Uia.GroupBox';[UIA]ControlType='Custom' && ClassName='Uia.PatientFilter' && AutomationId='_patientFilter';[UIA]ControlType='Edit' && AutomationId='_firstName') (The object specified was not found.)
    \0</a>

    E, 3196, 40, 2010/03/24, 18:19:36.058, 21912854870, QTAgent32.exe, Playback - [IMAGE] C:\Users\sundeepm\AppData\Local\Temp\UITestLogs\LastRun\RPF68D3.png
    \0
    W, 3196, 40, 2010/03/24, 18:19:36.058, 21912855193, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId
    \0
    W, 3196, 40, 2010/03/24, 18:19:36.058, 21912856213, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 4329 ms. Expected it to take maximum 500 ms.
    E, 3196, 40, 2010/03/24, 18:19:36.136, 21913093453, QTAgent32.exe, AL: Playback Error: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
    TechnologyName:  'UIA'
    ControlType:  'Edit'
    AutomationId:  '_firstName'
     Search may have failed at '_mainMenu' TabList as it may have virtualized children. If the control being searched is descendant of '_mainMenu' TabList then including it as the parent container may solve the problem. ---> 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.IScreenElement.FindAllDescendants(String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth)
       at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindAllScreenElement(String queryId, Int32 depth, Boolean singleQueryId, Boolean throwException)
       at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindScreenElement(String queryId, Int32 depth)
       at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
       --- 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.FindFirstDescendant(String queryId, Int32 maxDepth, 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.SetProperty(String propertyName, Object value)
    W, 3196, 40, 2010/03/24, 18:19:36.246, 21913395545, QTAgent32.exe, IEDOM : StopSession of the plugin called before StartSession
    W, 3196, 40, 2010/03/24, 18:19:36.246, 21913395722, QTAgent32.exe, UIA : StopSession of the plugin called before StartSession

     

     

    • Proposed as answer by Костас Thursday, October 13, 2011 10:38 AM
    • Unproposed as answer by Костас Thursday, October 13, 2011 10:38 AM
    Thursday, March 25, 2010 7:16 AM
  • Hi

    Thanks for detailed info.

    I think that I know the problem now. The control defination doesnt have TabItem and TabPage as ancestor element (UICadwellCascadeIntraoWindow.UISearchFilterGroup.UI_patientFilterCustom.UI_hospitalIDEdit)

    Whereas the UI tree does have these element. I will try to expalin the problem first.

    Tab Control is a Item Container element. All the Item container element needs to be part of the SearchProperty of the control which is under these element. In this case Edit control is under tab control.

    Here is how you can workaround this problem.

    1) Open UICL (Codeduitestbuilder)

    2) Do Win + I on the edit box for which search is failing.

    3) Goto the parent until you find any of these controls

    a)      Table

    b)      DataItem

    c)       Row

    d)      Cell

    e)      TabPage

    f)       ListBox

    g)      Combobox

    h)      Tree

    4) In your case you need to add the TabPage control (ControlType TabPage). Add this control to the UIMap and lets say it is being referred as UICadwellCascadeIntraoWindow.UITabList.UITabPage.

    5) Now you need to do this (before you search for the control)

    UICadwellCascadeIntraoWindow.UISearchFilterGroup.Container = UICadwellCascadeIntraoWindow.UITabList.UITabPage;

     

    Can you try this and see if this helps

     

    Thanks

    Siddhartha

    Thursday, March 25, 2010 8:31 AM
    Moderator
  • Thanks for the quick response.

    I think there is a bug in the coded ui test builder. while generating ui control map it seems to be generating a ui map it cant navigate at a later time. The only way i could fix this issue was to make the tool create the ui map from the top most ui control to the control i need manually (by making it navigate the tree of children and adding them to the ui map at every step). the tool seems to consistently fail to add ui maps for custom user controls.This will take a lot of time in automating our test cases.

     Is this an existing bug? This gives a bad user experience and hope it gets fixed when VS 2010 ships.

     

    Thursday, March 25, 2010 10:32 PM
  • Hi

    The reason why this fails is because the SearchProperties of the control are not good enough. The only workaround is to point the cross hair to the control and immediately navigate to the parent. This will ensure that you work on the live object and UICL dont need to search for the control afresh.

    Can you try navigating immeditely as soon as you point to the element?

    Thanks

    Siddhartha

    Friday, March 26, 2010 4:45 AM
    Moderator
  • good evening sir,

    i am doing my final year project on "GUI TESTING AUTOMATION.", and using winspy++ to find the control id . i have an MFC application, having activex control, that is gridcontrol. i need to select the row in that grid-view. since i don know the control-id of cell in the gridview, how can i select any cell or row in that without using mouse. i am using c# for coading.

    thanku sir,

    ravi kant soni

    bangalore, india

     

    nova3ravi@gmail.com

    ravi_kant_soni@yahoo.com

    Saturday, April 17, 2010 4:16 PM
  • I am surprised that this was marked as the answer.  If we are recording the UI interaction, how is it possible that the resulting, AUTO-generated, code has invalid SearchProperties?  This should be reported as a bug in the UI Recorder code generator, because it is the component responsible for creating the UI map.  Sure, you can say that we need to update the UI map, but doesn't that defeat the purpose of having a record feature?

    Wednesday, February 2, 2011 7:32 PM
  • Yeah you are correct this is BIG issue now with coded UI test, its difficult to the work around for all the controls, hope someone take this issue seriously. 

     

    This issue defeat the coded UI test as usable tool anymore.

     

     


    srini
    Wednesday, February 2, 2011 11:13 PM
  • HI Siddhartha,

    my test failed with the below error. I have the heirarchy as Window>Pane(Custom)>TabList>TabPage>TaItem(custom)>SubTabList>SubTabPage>List(Selecting in this list failed)>ListItem

    I tried by as below. Can you please let me where I did wrong?

    Open UICL (Codeduitestbuilder)

    2) Do Win + I on the edit box for which search is failing.

    3) Goto the parent until you find any of these controls (Tabpage,tablist,pane...)

    UIWindow.UIPaneCustom.Container = UIWindow.UITermsAndConCustom1.UITcTabTabList.UITabPage;

     

     Error:

    Test method codeduitest threw exception:

    Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:

    TechnologyName:  'UIA'

    ControlType:  'List'

    AutomationId:  ‘Codes”'

     Search may have failed at ‘ApprovalGroupID' ComboBox as it may have virtualized children. If the control being searched is descendant of ‘ApprovalGroupID' ComboBox then including it as the parent container may solve the problem. ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.

     

    Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.FindAllDescendants(String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth)

    Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindAllScreenElement(String queryId, Int32 depth, Boolean singleQueryId, Boolean throwException)

    Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindScreenElement(String queryId, Int32 depth)

    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)

    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapControlNotFoundException(COMException ex, IPlaybackContext context)

    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)

    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)

    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String queryId)

    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)

    Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetElement(Boolean useCache, ISearchArgument searchArg)

    Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.Search(ISearchArgument searchArg)

    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindInternal()

    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindControlIfNecessary()

    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates)

    Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)

    Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementationWrapper(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)

    Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control, Point relativeCoordinate)

    XPertJustice.Test.WPF.PersonSearch.UIMAPS.DAPortalUIMapClasses.DAPortalUIMap.EnterConfinementOfferData() in C:\XPertSeries\Source\XPJ-R8S4\XPertSeries\XPertJusticeTests\XPertJustice.Test.WPF.PersonSearch\UIMAPS\DAPortalUIMap.cs: line 557

    XPertJustice.Test.WPF.PersonSearch.UIMAPS.DAPortalUIMapClasses.CreateOfferTests.SimpleCreateOffer_Confinement() in C:\XPertSeries\Source\XPJ-R8S4\XPertSeries\XPertJusticeTests\XPertJustice.Test.WPF.PersonSearch\DAPortal\CreateOfferTests.cs: line 37

     

     

    W, 7060, 21, 2011/04/01, 12:45:04.886, 284613725458, QTAgent32.exe, SLPlugin: Port 4503 already in use

    W, 7060, 21, 2011/04/01, 12:45:04.888, 284613729485, QTAgent32.exe, SLPlugin: Port 943 already in use

    W, 7060, 21, 2011/04/01, 12:45:04.956, 284613929291, QTAgent32.exe, ExtensionFramework : A Technology Manager with name Web is already registered.

    W, 7060, 21, 2011/04/01, 12:45:04.973, 284613980191, QTAgent32.exe, SLPlugin: Port 4503 already in use

    W, 7060, 21, 2011/04/01, 12:45:04.973, 284613980936, QTAgent32.exe, SLPlugin: Port 943 already in use

    W, 7060, 21, 2011/04/01, 12:45:05.432, 284615324027, QTAgent32.exe, PERF WARNING: Uia.GetInstance: took 80 ms. Expected it to take maximum 50 ms.

    W, 7060, 21, 2011/04/01, 12:45:05.984, 284616938383, QTAgent32.exe, <a class=success>Playback - {1} [SUCCESS] DoubleClick - "[UIA]ControlType='ComboBox' && AutomationId='PleaOfferData_PunishmentRangeCode' && Instance='1'"  < Mouse cursor location (709, 111) >

    \0</a>

    W, 7060, 21, 2011/04/01, 12:45:06.458, 284618326102, QTAgent32.exe, <a class=success>Playback - {2} [SUCCESS] TypeString "First Degree Felony"

    \0</a>

    W, 7060, 21, 2011/04/01, 12:45:07.385, 284621039387, QTAgent32.exe, PERF WARNING: Uia.GetInstance: took 145 ms. Expected it to take maximum 50 ms.

    W, 7060, 21, 2011/04/01, 12:45:07.686, 284621920092, QTAgent32.exe, <a class=success>Playback - {3} [SUCCESS] MouseButtonClick - "[UIA]ControlType='TabPage' && AutomationId='CreatePleaOfferConfinementTab'"

    \0</a>

    W, 7060, 21, 2011/04/01, 12:45:08.374, 284623934508, QTAgent32.exe, PERF WARNING: Uia.GetInstance: took 142 ms. Expected it to take maximum 50 ms.

    W, 7060, 21, 2011/04/01, 12:45:09.264, 284626539426, QTAgent32.exe, <a class=success>Playback - {4} [SUCCESS] SendKeys "^{HOME}" - "[UIA]ControlType='Edit' && AutomationId='PleaOfferOptionData_FineAmount'"

    \0</a>

    E, 7060, 21, 2011/04/01, 12:45:09.266, 284626545482, QTAgent32.exe, Msaa.GetFocusedElement: could not find accessible object of foreground window

    W, 7060, 21, 2011/04/01, 12:45:09.439, 284627053171, QTAgent32.exe, <a class=success>Playback - {5} [SUCCESS] SendKeys "^+{END}" - "[UIA]ControlType='Edit' && AutomationId='PleaOfferOptionData_FineAmount'"

    \0</a>

    E, 7060, 21, 2011/04/01, 12:45:09.439, 284627053743, QTAgent32.exe, Msaa.GetFocusedElement: could not find accessible object of foreground window

    W, 7060, 21, 2011/04/01, 12:45:09.600, 284627524924, QTAgent32.exe, <a class=success>Playback - {6} [SUCCESS] SendKeys "{DELETE}" - "[UIA]ControlType='Edit' && AutomationId='PleaOfferOptionData_FineAmount'"

    \0</a>

    W, 7060, 21, 2011/04/01, 12:45:11.280, 284632441839, QTAgent32.exe, <a class=success>Playback - {7} [SUCCESS] SetValueAsEditBox "10.00" - "[UIA]ControlType='Edit' && AutomationId='PleaOfferOptionData_FineAmount'"  < Set via SendKeys >

    \0</a>

    W, 7060, 21, 2011/04/01, 12:45:11.992, 284634525822, QTAgent32.exe, PERF WARNING: Uia.GetInstance: took 143 ms. Expected it to take maximum 50 ms.

    W, 7060, 21, 2011/04/01, 12:45:14.323, 284641346950, QTAgent32.exe, <a class=success>Playback - {8} [SUCCESS] SetValueAsEditBox "20" - "[UIA]ControlType='Edit' && AutomationId='PleaOfferOptionData_ConfinementDurationValue'"  < Set via SendKeys >

    \0</a>

    W, 7060, 21, 2011/04/01, 12:45:15.031, 284643418973, QTAgent32.exe, PERF WARNING: Uia.GetInstance: took 138 ms. Expected it to take maximum 50 ms.

    W, 7060, 21, 2011/04/01, 12:45:15.638, 284645194661, QTAgent32.exe, <a class=success>Playback - {9} [SUCCESS] DoubleClick - "[UIA]ControlType='ComboBox' && AutomationId='PleaOfferOptionData_ConfinementDurationUnit'"  < Mouse cursor location (657, 201) >

    \0</a>

    W, 7060, 21, 2011/04/01, 12:45:15.830, 284645756346, QTAgent32.exe, <a class=success>Playback - {10} [SUCCESS] TypeString "Years"

    \0</a>

    W, 7060, 21, 2011/04/01, 12:45:16.443, 284647551134, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 510 ms. Expected it to take maximum 500 ms.

    W, 7060, 21, 2011/04/01, 12:45:17.110, 284649502620, QTAgent32.exe, Playback - [WARNING] Internal warning: Plugin based EnsureVisibleByScrolling failed to make element Visible. Trying to compose scrollable containers.

    \0

    W, 7060, 21, 2011/04/01, 12:45:17.878, 284651753429, QTAgent32.exe, Playback - [WARNING] Internal warning: Convertion of UIA elements to MSAA is not supported in the current version

    \0

    W, 7060, 21, 2011/04/01, 12:45:17.910, 284651844898, QTAgent32.exe, Playback - [WARNING] Internal warning: Plugin based EnsureVisibleByScrolling failed to make element Visible. Trying ScrollByCoordinates algorithm

    \0

    W, 7060, 21, 2011/04/01, 12:45:17.917, 284651866626, QTAgent32.exe, Playback - [WARNING] Internal warning: Convertion of UIA elements to MSAA is not supported in the current version

    \0

    W, 7060, 21, 2011/04/01, 12:45:17.918, 284651868488, QTAgent32.exe, Playback -    < [WARNING] Internal warning:  Can not compare UI elements if one of them is not MSAA element >

    \0

    W, 7060, 21, 2011/04/01, 12:45:17.918, 284651869396, QTAgent32.exe, Playback -    < [WARNING] Internal warning:  Can not compare UI elements if one of them is not MSAA element >

    \0

    W, 7060, 21, 2011/04/01, 12:45:20.100, 284658255836, QTAgent32.exe, Playback - [WARNING] Internal warning: Plugin based EnsureVisibleByScrolling failed to make element Visible. Trying ScrollByCoordinates algorithm

    \0

    W, 7060, 21, 2011/04/01, 12:45:20.847, 284660441729, QTAgent32.exe, <a class=success>Playback - {11} [SUCCESS] MouseButtonClick - "[UIA]ControlType='TabPage' && Name='Enhancements and Special Findings'"

    \0</a>

    W, 7060, 21, 2011/04/01, 12:45:24.318, 284670599515, QTAgent32.exe, Playback - [WARNING] Internal warning: Element "[UIA]ControlType='Custom' && ClassName='Uia. TermsAndConditionsTabItem' && AutomationId= ‘Terms&Conditions’ " was not found, so all intermediate elements were ignored. To improve performance replace this element Id with another Id or exclude it from QueryId. If this element is the target element, replace or remove intermediate elements

    \0

    W, 7060, 21, 2011/04/01, 12:45:30.548, 284688836979, QTAgent32.exe, Playback - [WARNING] Internal warning:Search failure: <[UIA]ControlType='Custom' && ClassName='Uia.TermsAndConditionsTabItem' && AutomationId= ‘Terms&Conditions’ > | Performed (4) search retries, UI element not found

    \0

    E, 7060, 21, 2011/04/01, 12:45:30.548, 284688837548, QTAgent32.exe, <a class=failure>Playback - {12} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;[UIA]ControlType='Custom' && ClassName='Uia. TermsAndConditionsTabItem' && AutomationId= ‘Terms&Conditions’ ;[UIA]ControlType='TabList' && AutomationId='tcTabs';[UIA]ControlType='TabPage' && Name='Enhancements and Special Findings';[UIA]ControlType='TabPage' && Name='Special Findings';[UIA]ControlType='List' && AutomationId=‘Codes”') (The object specified was not found.)

    \0</a>

    E, 7060, 21, 2011/04/01, 12:45:30.818, 284689627204, QTAgent32.exe, Playback - [IMAGE] C:\Users\SUNEETHA\AppData\Local\Temp\UITestLogs\LastRun\RPF178E.png

    \0

    W, 7060, 21, 2011/04/01, 12:45:30.818, 284689627656, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId

    \0

    W, 7060, 21, 2011/04/01, 12:45:30.818, 284689628193, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 9868 ms. Expected it to take maximum 500 ms.

    E, 7060, 21, 2011/04/01, 12:45:31.007, 284690180551, QTAgent32.exe, AL: Playback

     

     

    • Proposed as answer by UITester_500 Thursday, October 27, 2011 8:13 PM
    • Unproposed as answer by UITester_500 Thursday, October 27, 2011 8:13 PM
    Friday, April 1, 2011 5:54 PM
  • Hi XPT_SP,

    Please mark your question as un-answered otherwise you get any reply!!

    This issue has been there long time, but no responds.!

     

     


    srini
    Tuesday, April 19, 2011 10:52 PM
  • Hi,

    Thanks for posting your issue. Can you send out your application(or a sample similar to yours) in which I can reproduce the exact problem?


    Please mark the post as answered if this answers your question. ThejK
    Thursday, April 28, 2011 11:10 AM
  • Please send it to thejk at microsoft dot com
    Please mark the post as answered if this answers your question. ThejK
    Thursday, April 28, 2011 11:22 AM
  • Hello.
    We're using VS-2010 Ultimate to develop our product.
    We have used PRISM and Infragistics controls in our WPF application.
    Our ribbon (XamRibbon) has been exposed as a region, more precisely as a UIExtensionSite.
    The automated UI Test, when run on our application, does not detect ButtonTool on the XamRibbon and gives the following error message:
    "Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details: 
    TechnologyName:  'UIA'
    ControlType:  'Button'
    AutomationId:  'OrganizePortfolio'
     Search may have failed at '' TabList as it may have virtualized children. If the control being searched is descendant of '' TabList then including it as the parent container may solve the problem. ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component."
    Monday, July 11, 2011 10:08 AM
  • Hi moulai,

    I see your post accidentally. But if you still need help we will try to solve your problem.

    Thanks,

    Anastas

    Sunday, September 25, 2011 8:51 AM
  • Hello,

    Yes, we're still facing the issue. Awaiting a solution to the problem anxiously!!!

    - Moulai

    Friday, September 30, 2011 12:54 PM
  • Okay,

    Could you please write a forum post in our community site(http://forums.infragistics.com/). Or you can contact directly to my email(AStaev@infragistics.com). We will need a small isolated application which reproduces this issue. Hope that we can help you with this problem.

    Regards,

    Anastas

    Monday, October 3, 2011 11:47 AM
  • Can you please identify the discussion on the "NetAdvantage for WPF" forum site where my post would get urgent attention and reply?
    Thursday, October 27, 2011 9:58 AM
  • The issue has been addressed and resolved.  Refer to MSDN blog and support article in this thread: http://social.msdn.microsoft.com/Forums/pl-PL/vsautotest/thread/a8e3d5dc-a2b7-4e38-8cef-cbb568e21b8c


    Forrest Guo | MSDN Community Support | Feedback to manager

    Tuesday, June 12, 2012 2:01 AM
    Moderator