From: Josh Cheek Date: 2010-12-24T01:02:14+09:00 Subject: Re: How to interact with web pages? --0016363104e91a9b20049815fd38 Content-Type: text/plain; charset=ISO-8859-1 I'll also add Mechanize, if you don't need JavaScript ( http://rubygems.org/gems/mechanize) One of the Mechanize examples is exactly what you are talking about, logging in to flickr and uploading an image ( https://github.com/tenderlove/mechanize/blob/master/examples/flickr_upload.rb ) A good starting place for a newbie might be to figure out how to modify that script. But be warned that it might take a lot of playing around and reading documentation. I'll suggest loading irb, and playing around in there to see what works and how to get to the next spot from where you are at. If you do need JavaScript, I like Watir a lot. But you have to know a little more what you are doing to use Watir (maybe not if you are using Internet Explorer, I'm on a Mac so never tried with IE). When I did it with FireFox, I had to load up FireFox from the command line with special arguments, and when I did it with Chrome, I had to download and install some Chrome add ons (fwiw, the FireFox one was way more stable). Here is a video I made for a class where I tried to use Watir to test a site my team was working on ( http://vimeo.com/16965368). In the end, I didn't keep using it, but you can see that it should be able to do what you are asking. --0016363104e91a9b20049815fd38--