Hi Zeljko,

Thank you the reply!

I found one of your reply for the assertion in another email and that helped 
with my problem.  Here is the code I had before and it always failed.
begin
assert(ie.frame(:name, "top_frame").contains_text("ClaimCenter"))
puts ("Test Passed. Found folder 'ClaimCenter'")

rescue => e
puts("TEST FAILED.  Cannot find folder 'ClaimCenter'")
end

I removed the rescure... and it works now:

begin
assert(ie.frame(:name, "top_frame").contains_text("ClaimCenter"))
puts ("Test Passed. Found folder 'ClaimCenter'")
end


Have one question for you.  When using assert in irb, it gives me 
NoMethodError.  I did require 'Watir', should I be able to use assert in this 
case?

irb(main):006:0> assert(ie.contains_text('iGoogle'))
NoMethodError: undefined method `assert' for #<Object:0x28cfa30>

Really appreciate your help!

Kui
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to