From: michael Date: 2006-08-06T04:50:14+09:00 Subject: uploading local file into text_field using watir Could anybody help with the code below in Ruby / watir?? ------------------------------------------------------------------------------------------------------------------------------------------- require 'watir' ie = Watir::IE.start("http://manymoandzo/cgi-bin/arp3/arp3.pl") ie.text_field(:name, "name").set("user id") ie.text_field(:name, "password").set("passwd") ie.form(:name, "form").submit ie = Watir::IE.start("http://manymoandzo/cgi-bin/arp3/arp3.pl?a0=aut&a1=edi&a2=edi&mid=20") $Path = "c:\test.htm" ie.text_field(:name,'html_text').set($Path) ------------------------------------------------------------------------------------------------------------------------------------------ what I am struggling with is to insert whole content in test.htm to the field 'html_text' in the web site.. this 'html_text' field is a big field, and I need to copy what is in test.htm into 'html_text' field using watir.. I have about 600 of these files.. which i would like to accomplish using watir.. but it never works out.. it is just writing... c:\test.htm in 'html_text' field, and what I want this watir program to do is to write the text inside test.htm file in to the text_field, html_text. i struggled so many hours.. and any help will be greatly appreciated. thanks. troubled michael..