With Selenium 2 uploading a path is very easy if the page is using standard file upload mechanism of web. Some old pages may still be using Flash or another plugin based technology. In other words, you should have some <input> field defined as follows. <input type=”file” id=”upm-upload-file” name=”plugin” size=”38″> You can automate an upload