A
aidy
I am iterating through a collection and using Test::Unit assertations
on each object
begin
search.each {|@x|
assert($ie.contains_text(@x)) }
rescue => e
puts "#{@x} does not exist in HTML"
end
However, the problem is that if the first assertation is false, an
exception is thrown and my loop terminates. I would like to continue
the loop after an exception is thrown. I have tried 'retry', but I find
myself in an infinite loop.
Thanks
aidy
on each object
begin
search.each {|@x|
assert($ie.contains_text(@x)) }
rescue => e
puts "#{@x} does not exist in HTML"
end
However, the problem is that if the first assertation is false, an
exception is thrown and my loop terminates. I would like to continue
the loop after an exception is thrown. I have tried 'retry', but I find
myself in an infinite loop.
Thanks
aidy