Throw CodedUI reference exception, even if the object exists

I created a coded ui test that checks something in my software. It worked fine, but now I get an exception for the link all the time when I try to interact with UITestControls (which were generated in uimap). It is strange that the UITestControls 'Exist' property returns true, which means that the control is found.

I searched and found this topic: http://social.msdn.microsoft.com/Forums/en/vsautotest/thread/c2e6e5c3-2503-4506-9963-733fd84fbd25 , But I checked in my project and the property "Copy local" These assemblies are set to false.

I think this exception occurred first after adding the app.config file to my project. Maybe this could be a problem? If so, how can I fix this without deleting the app.config file?

Thank!

+3
source share
1 answer

I solved this problem for myself:

  • setting up my system and Microsoft dll copy local false. This question has already done this, it was important.
  • go to the bin / Debug (or bin / Release) folders and delete the copies of the system and Microsoft DLLs that still exist! Copy Local may be false, but the DLLs still exist when Copy Local was true!
+4
source

Source: https://habr.com/ru/post/1784847/


All Articles