From: eric tabora Date: 2006-05-25T06:03:16+09:00 Subject: Multiple Arrays As you can probably tell, I'm a noob. I'm working with a program called Watir written in ruby. I'm trying to use two txt documents to populate two different text fields. I'm able to create the arrays, but having trouble populating the text fields properly before Submitting. The first field 'Width' populates correctly by placing one line at a time. But the second places all values in the array into the field. Any help would be greatly appreciated. Here's what I have: def size_entry size_array = IO.readlines("OneOffSizes1.txt") size_array2 = IO.readlines("OneOffSizes2.txt") size_array.each_with_index do |size_array,i| $ie.textField(:name, "width").set("#{size_array}") $ie.textField(:name, "height").set("#{size_array2}") $ie.button(:value, "Submit").click end end #size_entry Thanks, Eric -- Posted via http://www.ruby-forum.com/.