IE crashing after about 70 open/close event

I

István Sebe

Hi,

I have to open links (about 3000) and then close them.
The problem is, that after 70 open/close event the IE (FF not supported
in our WebServer) crashes, stuck in memory and the script collapses.

The script:

def link_clicker()
if $br.frame(...).exists? then
$br.frame(...).lis.each do |linke|
linke.click
$br_new = Watir::IE.attach:)url,linke.href)
if not $br_new.pageContainsText(text) then
puts "No match" #only debug feature
end
$br_new.close
end
else puts "Doesn't find list!"
end
end

Any ideas how to solve the problem, please?
Thank you

SebeIs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top