Uploading a file with Selenium Webdriver
Submitted by harrydev on Sat, 09/06/2014 - 11:11There are different ways to handle file uploads with Selenium Webdriver.
The First and the Easy way is simple case of just finding the element and typing the absolute path of the document into it.
HTML code should look similar to this :
<input type="file" name="datafile">
Syntax: