I am using selenium-webdriver to do file upload.

<div id='foo' >
  <input type="file" name="att_ssn_w9_file" size="40" tabindex="7"
value="" onkeydown="fileInputOnKeyDown(this,event);" onblur=""
onfocus="" id="33162218">
</div>

driver.find_element(:name,'att_ssn_w9_file').send_keys('C:\path\to\file.txt')

But above code not inserting the file to the above shown element in the
webpage.

Can anyone help me,by saying what mistake I did. ?

-- 
Posted via http://www.ruby-forum.com/.