I wish to record URL of each page I visit using Watir.

I have come up with the below coding.

require 'watir'

ie = Watir::IE.start("http://www.testsite.com";)

file = File.open("c:/test_URL.txt", "a")


0.upto(1000) { |f|


        file.puts ie.url()

                sleep 5

}

file.close


with code above, I need to click new web link every 5 seconds
exactly.  I REALLY CANNOT MAKE SURE I VISIT / CLICK TO PAGE EVERY 5
SECONDS.

Would it be possible to ignite

file.puts ie.url()

when I just click a link on the current page while above watir  code
is on the page??

I look through google search, but i couldn't find anything that could
help me.

I WISH WATIR CODE THAT WILL NOTICE NEW CLICK BY THE USER.. and then
ignite file.puts ie.url()  when click event occurs.

thanks.

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to