From: michael Date: 2006-08-09T01:35:10+09:00 Subject: Re: uploading local file into text_field using watir Matt.. do you know how to download pages through watir?? what would be the command for downloading web pages accessed through Watir?? thanks. michael Matt Todd wrote: > If you mean looping through them all, then you could just wrap it all > up in a little iteration block, like so: > > 1.upto(number_of_emails) do |num| > # your upload code > # use $Path = "c:\path\to\email#{num}guide.htm" to set the right name > end > > Check out the documentation for Int and other enumerables if you're confused. > > http://rubycentral.com/ref/ref_c_integer.html#upto > > If you've not purchased it yet, do get Programming Ruby from the > Pragmatic Programmers. It's the definitive reference and learning > resource for Ruby. Plus, if you're feeling spunky enough, read _Why > The Lucky Stiff's Poignant Guide, http://www.poignantguide.net/ which > is a bit wacky, but is still an excellent introduction to the > language. > > M.T.