title: C# Selenium Webdriver Interacting with native image upload dialog using SendKeys.SendWait does not work on TeamCity
body: <p>I am using Windows.Forms.SendKeys.SendWait to interact with the native windows dialog when uploading an image.</p>
  
  <p>I click the upload button using webdriver, then go:</p>
  
  <pre><code>SendKeys.SendWait("^A"); //Highlight content so it can be overwritten
  SendKeys.SendWait(path);
  SendKeys.SendWait(@"{Enter}");
  </code></pre>
  
  <p>Works great when I run it locally on my PC, however, the test won't run on the TeamCity agent (I have many other tests that run OK). It fails as it seems that native dialog never appears or if it does, it can't interact with it. </p>
  
  <p>Not sure what's happening as this whole test agent process runs in the background and I can't see what it's doing - I can take screenshots using webdriver but it won't capture native dialogs anyway. </p>
  
  <p>I tried to configure the team city test agent windows service (change Log On settings to allow interacting with desktop) but this did not work. Seems it just isn't able to interact with it... any ideas on how to make this work?</p>