From: Nick Sieger Date: 2006-10-25T11:02:37+09:00 Subject: Re: Best way to automate web browser tasks? ------=_Part_12876_7216701.1161741753462 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/24/06, Hal Fulton wrote: > > I know there's Watir or something... but I'm not using > IE (rather Firefox) and I don't want to "control the > browser" per se... > > Rather I want to automate some repetitive tasks... like > go to a form, fill in a couple of fields, click a checkbox, > pick from a dropdown, and click on Save. > > How would you do this? If I were going to do it in a browser, I'd use Selenium RC [1] along with the included selenium.rb to do things like this: | selenium = Selenium::SeleneseInterpreter.new("localhost", 4444, "*firefox", "http://www.google.com/", 10000); | selenium.start | selenium.open "http://www.google.com/" | browser.type "name=q", "ruby" | browser.click_and_wait "name=btnG" Cheers, /Nick [1] http://www.openqa.org/selenium-rc/ ------=_Part_12876_7216701.1161741753462--