title: automate image upload from windows explore with selenium and AutoIT
body: <p>I have to automate a scenario like a upload an image from windows explorer to TinyMCE component using Selenium. Since Selenium does not support OS control, I used AutoIt to upload the image. 
  AutiIt sets the image path to "File name" and seems like it clicks on 'Open' button as well. But the image is not loading to my "source" field. </p>
  
  <p>Here is my Selenium command: </p>
  
  <pre><code>Runtime.getRuntime().exec("C:/XXXXX/src/test/resources/uploadImage.exe");
  // Path of the AutoIT script file
  </code></pre>
  
  <p>AutoIT script:</p>
  
  <pre><code>WinActivate("Open")
  Send("C:\LCNGProjects\Screenshots\Images\GifImage1.gif")
  Sleep(5000)
  Send("{ENTER}")
  </code></pre>
  
  <p>Refer the attached screenshot</p>
  
  <p><a href="https://i.stack.imgur.com/U6nZz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U6nZz.jpg" alt="Refer the attached screenshot"></a></p>