From: michael Date: 2006-08-06T07:35:11+09:00 Subject: Re: uploading local file into text_field using watir Matt.. Thanks you so much.. It works beautifully.. Now as I have stated in my previous posting, I have many hundreds of these files to upload.. the files are named as email1guide.htm, email2guide.htm.. email3guide.htm.. and so on.. like this.. Would you please tell me the way to iterate these postings in one setting rather than doing one by one a couple of hundreds times?? thanks. grateful, michael Matt Todd wrote: > Well, what you're doing is just taking the contents of the variable > $Path and setting it to the text field. You'll actually need to open > and read the file. For example... > > ie.text_field(:name, "html_text").set(File.new($Path).read) > > That should do it. > > M.T.