RE: [Httpunit-develop] Collecting links from a page...
Brought to you by:
russgold
From: Pierre M. <pie...@pl...> - 2002-02-22 13:55:55
|
getLinks() gives you an array of links -----Original Message----- From: Joey [mailto:ref...@ho...] Sent: Friday, February 22, 2002 6:44 AM To: htt...@li... Subject: [Httpunit-develop] Collecting links from a page... Warm greetings to everyone on the list ! I need to collect all the links in a page and click on random or (lets say first link) in that page. I have a method, but most of the links are hardcode and the method has become quite dependent to that page. Anyone has written such methods or suggestions as to how to go about it would be greatly appreciated. Don't worry about clicking on link. Just the best way to collect the links in an ArrayList or something... Cheers, J |