From: Paul Lutus Date: 2006-12-05T18:20:05+09:00 Subject: Re: looping through & downloading web page - WATIR codes curious wrote: > I found out what the problem is.. > > it is the last part.. > > ie.link(:text, "Next").click.. in the last web page, although "Next" > text is contained, link is not present since it is the last page.. > > Is there anyway, I can control "ie.link(:text, "Next").click" by > checking the presence of link beforehand?? Sorry, I don't know enough about Watir to answer this question. > so if link is present, then > proceed, otherwise.. halt.. I think my code will do as I wish once > this gets done.. No, it won't. It won't because you are not closing your file handles. If you don't close your file handles, the writes will not be completed and this could lead to file corruption. At the end of the process, after writing any number files, you close the last of the file handles, but you must close all of them. I'm sorry I can't answer more of your questions. -- Paul Lutus http://www.arachnoid.com