title: Running Coded UI tests with Resharper/NUnit will not locate Silverlight components
body: <p>I'm using Visual Studio 2010 Premium Edition. I've recorded tests with Coded UI, on a Silverlight application within a browser.</p>
  
  <p>When I run the tests using  test runner they pass.
  When I run them using NUnit, they open the browser and navigate on an HTML site properly, but once the test reaches the Silverlight application it fails to locate the elements.</p>
  
  <p>Does anyone have any ideas?
  This is the error message:
  Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException : The playback failed to find the control with the given search properties. Additional Details: 
  TechnologyName:  'Silverlight'
  ControlType:  'MainPageView'
    ----> System.Runtime.InteropServices.COMException : Error HRESULT E_FAIL has been returned from a call to a COM component. </p>