CodedUI null reference exception even when object exists
Posted
by
Roee
on Stack Overflow
See other posts from Stack Overflow
or by Roee
Published on 2011-01-11T22:50:24Z
Indexed on
2011/01/11
22:54 UTC
Read the original article
Hit count: 297
Hi,
I have created a coded ui test that checks something in my software. It worked fine, but now I keep getting null reference exception when I try to interact with the UITestControl. The starnge thing is, that the UITestControl's 'Exist' property returns true, which means that the control had been found.
I've searched and found this topic: http://social.msdn.microsoft.com/Forums/en/vsautotest/thread/c2e6e5c3-2503-4506-9963-733fd84fbd25, But I have checked in my project, and the 'Copy Local' propert of these assemblies is set to false.
I think that this execption first occurred after I have added an app.config file to my project. Maybe this might be the problem? If so, how can I fix this without deleting my app.config file?
Thanks!
© Stack Overflow or respective owner