[Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- : runtimeerror in wai

Andy Sipe andy__s at hotmail.com
Tue May 9 12:28:45 EDT 2006


The 'Warn -- : .... ' part of the output is coming from inside Watir.   
There are a few cases where Watir will write output to the console when it 
is having some problems.   In this case, it had some trouble, caught an 
exception and dumped some output.   It is a Warn because it may or may not 
be critical.

Your exception handler isn't being called and that is why you see 
'Successful Added...'

-andy


----Original Message Follows----
From: "Paatsch, Bernd" <BPaatsch at activevoice.com>
Reply-To: wtr-general at rubyforge.org
To: "'wtr-general at rubyforge.org'" <wtr-general at rubyforge.org>
Subject: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- : 
runtimeerror in wai	t
Date: Tue, 9 May 2006 11:14:05 -0500

Hello,

My code generates following output:

W, [09-May-2006 08:58:20#3372]  WARN -- : runtime error in wait
  ...Successful added

if ie2.button( :value, ' Done ' ).exists? then
    begin
         ie2.button( :value, " Done ").click
         print"\n ...Successful added"
    rescue Exception, RuntimeError => runtime_error
         puts " runtime"
    end
end

How can I prevent, catch the warning? I though having a rescue statement
would do the job.

Thanks for your help.
Bernd




_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general





More information about the Wtr-general mailing list