How to collect all the href links in a single page to a log file

I have a web which consists of multiple links with different colors. I
want
to collect a set of links with same color and move them to a notepad
file(log file)…

Please give Ruby code which works in Watir.

Thanks,

for colors do you applied any css?
if so, u can take through class name.

My actual problem is as follows:

· Navigate to Google in a new IE instance
· Search for the following word “Gap, Inc.”
· Iterate thought the first 10 pages of google
· On each page collect the following
· The “blue” page title
· The “green” url
· Output all the data into a file named “test_output.txt”
· Format "Title – URL

Can you help me in this…

Thanks,
Sita

On Tue, Nov 11, 2008 at 8:16 PM, Srinivasa R.
<[email protected]