Control not found exception in CODEDUITEst
-
27 Nisan 2012 Cuma 17:13
Hi there,
I have a forms and in the form I read through all the variables/attributes of the form while pressing "space key". At the last control(which is a text box and have four digit numbers in it) the test stops at last digit and gives me an exception again"Control not found with the given search properties".
Please help me through this issue.
Thanks a lot.
Tüm Yanıtlar
-
29 Nisan 2012 Pazar 10:45
What is this action recorded as? Is this something like
<textBoxControl>.Value = <4 digit number>
Or something else? Can you please look into the generated code and let us know?
-Deepak.
-
30 Nisan 2012 Pazartesi 16:28
This is how it looks
Keyboard.SendKeys(uIUntilTm3Edit, Me.ReadUntilTimeParams.UIUntilTm3EditSendKeys, ModifierKeys.None)
'Click 'COMPLETE' button
Mouse.Click(uICOMPLETEButton, New Point(53, 23)) //And the test execution stops at COMPLETE Button giving an exception could not found "complete button" Thanks -
01 Mayıs 2012 Salı 18:45
Ok then the issue is not related to text box. The search is failing for the button named as COMPLETE during the mouse click action. Can you please verify whether the search properties used for this control are correct and relevant with respect to the actual control?
-Deepak.
- Yanıt Olarak İşaretleyen Tony xiaoModerator 08 Mayıs 2012 Salı 10:09
-
07 Mayıs 2012 Pazartesi 02:21Moderatör
Hi developer.vsdotnet,
From your description, I guess the key point of this issue is related the complete button control.
As Deepack said you should verify the search properties group for this control in your UIMap. If you figure out which property is not quite well for this control then you could change it directly or use test builder utility drag onto the complete button and see what properties exposed by this control and then add them into search properties group for this control.
Hope this could help you!
Tony Xiao [MSFT]
MSDN Community Support | Feedback to us
- Yanıt Olarak İşaretleyen Tony xiaoModerator 08 Mayıs 2012 Salı 10:09