[Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN -- :runti meerror in wai
Paatsch, Bernd
BPaatsch at activevoice.com
Tue May 9 12:44:00 EDT 2006
The code works fine.
Is it possible to catch this warring and prevent it from being written to
the stdout?
-----Original Message-----
From: wtr-general-bounces at rubyforge.org
[mailto:wtr-general-bounces at rubyforge.org] On Behalf Of Andy Sipe
Sent: Tuesday, May 09, 2006 9:29 AM
To: wtr-general at rubyforge.org
Subject: Re: [Wtr-general] Why? [09-May-2006 08:58:20#3372] WARN --
:runtimeerror in wai
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
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20060509/72b33ae1/attachment.html
More information about the Wtr-general
mailing list