title: How can I include AutomationElement in c# ? What do I have to add?
body: <p>I can't initialize the AutomationElement. </p>
  
  <pre><code>AutomationElement element = AutomationElement.FromHandle(process.MainWindowHandle);
  </code></pre>
  
  <p>It highlights the AutomationElement The error it says is <a href="http://i.stack.imgur.com/wNCvq.png" rel="noreferrer">http://i.stack.imgur.com/wNCvq.png</a></p>