Sorry, probably my fault for not being clear about how new I am to this.

I want the code to do the following things:
1. Check on page for a link.
2. If link not there, press "Next page"
3. If link there, click on it.
4. When next page reached (if step 2 followed), repeat the action of looking 
for link/clicking next.

Am playing around with code, and have come up with following:

link = ie.link(:url, "http://www.freeuk.com";)
    until link.exists
    ie.goto("http://www.google.co.uk/search?q=freeuk&hl=en&start=10&sa=N";)
    
    if link.exists = true
      ie.goto(link)
    end

Am totally aware that this will not work, but it may give my helpers more idea 
of the details I want!!

Thankyou all in advance, and please help!
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to