I suggest that you can use CSV or XML rather than Excel, because the Watir's script won't execute if your machines haven't installed Excel.
On 11/27/06, Željko Filipin <[EMAIL PROTECTED]> wrote:
I do not know how to use Excel, but this is how you could simplify your code (tested). searches = ["pickaxe", "Ruby", "Watir", "Watir and Ruby"] searches.each do |search| ie.text_field(:name, "q").set(search) ie.button(:name, "btnG").click end -- Zeljko Filipin zeljkofilipin.com _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
-- Please give me a reply if you recevied the mail. Thanks. Best Regards Jackei.Chan (Software Testing Consultant) [EMAIL PROTECTED] Chinese Blog: http://jackei.cnblogs.com/ English Blog: http://www.testingreflections.com/blog/3424
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general