title: Upload picture using Selenium JavaScript
body: <p>I want to create automation to upload picture, using Selenium with this script:</p>
  
  <pre><code>driver.findElement(By.id(`avatar-upload`)).sendKeys(`/home/user/Desktop/smg935-0hero-0930.jpeg`)
  </code></pre>
  
  <p>It return to:</p>
  
  <pre><code>ElementNotInteractableError: Element &lt;input id="avatar-upload" type="file"&gt; is not reachable by keyboard
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/wcNrM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wcNrM.png" alt="enter image description here"></a></p>