From: "Esteban Manchado Velázquez" Date: 2006-10-27T02:02:11+09:00 Subject: Re: Best way to automate web browser tasks? --4SFOXa2GPu3tIq4H Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 25, 2006 at 11:02:37AM +0900, Nick Sieger wrote: > 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? >=20 >=20 > 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: >=20 > | selenium =3D Selenium::SeleneseInterpreter.new("localhost", 4444, > "*firefox", "http://www.google.com/", 10000); > | selenium.start > | selenium.open "http://www.google.com/" > | browser.type "name=3Dq", "ruby" > | browser.click_and_wait "name=3DbtnG" +1 It executes inside the browser, so it executes Javascript and such. --=20 Esteban Manchado Vel=E1zquez - http://www.foton.es EuropeSwPatentFree - http://EuropeSwPatentFree.hispalinux.es --4SFOXa2GPu3tIq4H Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFQOoJhYgK5b1UDsERAo3yAJ9DxLvNPNLQOJ5rO9pJ/UFv0eNjKgCeMtkm srAyez6rFpd+6AA1CUHLgbw= =656b -----END PGP SIGNATURE----- --4SFOXa2GPu3tIq4H--