title: Can I Call An AngularJS Function From Selenium
body: <p>Part of my web app has configuration that requires a file upload. This is currently implemented using AngularJS</p>
  
  <pre><code>&lt;div ng-file-drop="onFileSelected($files)"&gt;Upload Files&lt;/div&gt;
  </code></pre>
  
  <p>Dropping a file from the filesystem using Selenium seems nearly impossible and the SendKeys method wont work here as all I have is a <code>div</code> and not an <code>input</code>.</p>
  
  <p>The alternative seems to be to call the Angular function directly.
  How would I do this?</p>