The target element was not found, so all intermediate elements were ignored. As a result, an incorrect element that matches the target element's search properties can be found. Verify that all intermediate elements in Query Id have valid and unique search

Hi All,
I am using CUIT to write automated UI test cases. I have a dialog containing few edit control and buttons. 
While running the test it is able to click the button.
However I am getting few warnings as below.
The target element "Technology Name: 'MSAA';Search Configuration: 'VisibleOnly'; Search Properties - ControlType : 'Button',Name : 'OK'" was not found, so all intermediate elements were ignored. As a result, an incorrect element that matches the target
element's search properties can be found. Verify that all intermediate elements in Query Id have valid and unique search properties.
Technology Name: 'MSAA'
Search Configuration: 'VisibleOnly'
Search Properties - 
     ControlType : 'Button'
     Name : 'OK'
Mouse button : 'Left'
I need to resolve these warning. Can anybody suggest me how to resolve these warnings.

Hi sanjay_t,
From these warning message as you provide, I doubt that maybe the button control did not be found successfully by the searchproperties when you playback the Coded UI test.
So I suggest you can try to use DrawHighlight Method  to check if the button control
is found before you perform actions on the button target control.
(2)I suggest you can try to use
FindMatchingControls Method on the button control to check if there are more than one control which matches the specified searchproperties and filterproperties.
In addition, as you said that you are using CUIT to write automated UI test. it means that you record the UI action by handing code, am I right?
If yes, I suggest that you can create a simple coded UI test through recording actions using Coded UI Test Builder. Then
generate the code and then try to playback. If playback succeeds, then cross check the properties from UIMap.Designer.cs file. You can reference the code about entering values in the text edit in the UIMap.Designer.cs file to write
your own code.
For more information about how to find a control for coded UI test, I suggest you can refer the following blog.
http://blogs.msdn.com/b/balagans/archive/2009/12/28/9941582.aspx
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

Maybe you are looking for

  • MSI Wind Netbook U123 turbo speed request | SPLIT

    Hi Svet, I have work to you ;]  Yesterday I downloaded latest bios from MSI global website to my Wind U123H and flash my netbook using MSI Forum HQ USB flashing tool (application is brilliant). <<  before  flash  >> MSIHQ: Information detected by MSI

  • More generic overlays in print module

    Currently there's a way to place the identity plate on images in the print module, but it could use some work. Here are some additional features I'd like to see: Instead of using the specific identity plate as overlay, the print module should use mor

  • Found a workflow to export an iTunes playlist in MY play order-doesn't work

    Here is the Automator script I found to work around the fact that iTunes will invariably burn a playlist in alpha order, no matter what we do. I found it here: http://www.macosxhints.com/article.php?story=20080424194133862 1. Automator » Ask for Conf

  • Corrupt LOG File MaxDB 7.5 (Netweaver 04)

    At the Installation the LOG went full. LOG-Mode = SINGLE. Then I have added a new LOG File. Nothing happens. After rebooting the maschine, the database doesnt come up, in krnldiag there is following: 2004-11-14 22:46:30  7579     11000 vattach  '/sap

  • RSA1 infosources under wrong SID after system copy and BDLS has run

    Hi – we are a BW3.5 SP#21 system on 10202 and hpux 11.23 (ia64).  We have an R/3 system connected to the BW system for extracts.  Extracts work fine in the productive environment.  So 1 production BW system, and 1 production R/3 system.  We also have