title: File chooser dialog can only be shown with a user activation error while using web scraping through Javascript
body: <p>I am trying to programmatically click a button in a web page using the command</p>
  <p>document.getElementsByName(&quot;versionFile&quot;)[0].click()</p>
  <p>while this command works fine in the developer tool console (opens the file selector) i am not able to execute this in script because it gives me a error saying &quot;File chooser dialog can only be shown with a user activation&quot; highlighting the click() function</p>
  <p>Can anyone hep me out with this.</p>