in reply to What could be the best way to capture controls in a web page?

WWW::Mechanize and its brethren should be a good place to start looking. It does not render the webpage, if that is what you mean by "viewing" but of course it will have to download the source of the web-page. It then parses this source code and extracts all links and forms and allows you to access these.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: What could be the best way to capture controls in a web page?