If you're getting : `set': No such file or directory - hi.txt
Then your path to the file isn't right. b.file_input(:id => "fileuploadbox").set("C:\\folder\\hi.text") or b.file_input(:id => "fileuploadbox").set("C:/folder/hi.text") or on a mac/linux b.file_input(:id => "fileuploadbox").set("/Users/mani/Desktop/hi.text") On Friday, August 3, 2012 9:32:49 AM UTC-4, mani racha wrote: > > Hi kevy, > that's so nice of you although it doesn't give me the result. > > > On Fri, Aug 3, 2012 at 6:57 PM, Super Kevy > <kpe...@scholarshipamerica.org>wrote: > >> Check http://www.w3schools.com/jsref/dom_obj_fileupload.asp about the >> object your likely to be working with if standard html and not a flash >> based object. >> >> You will find the form syntax something like: <input type="file" .... >> >. Get it? "type=file" >> >> Basic HTML is nice to know w3Schools offers easy to learn tutorials. >> >> >> >> >> >> On Friday, August 3, 2012 1:44:29 AM UTC-5, mani racha wrote: >> >>> Hi Eric, >>>> >>> 've tried with your suggestion. >>> oops......Its also of no use. >>> >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> watir-general@googlegroups.com >> http://groups.google.com/group/watir-general >> watir-general+unsubscr...@googlegroups.com >> > > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com