in reply to automate web page testing!

See the Mechanize family of modules.