[wtr-general] Re: Writing output to a file

2009-04-17 Thread Chuck van der Linden
You might want to look at the examples in the watir wiki http://wiki.openqa.org/display/WTR/Examples there's some stuff there that shows both how to do a logging class (something I find useful for troubleshooting scripts that are misbehaving) and also how to do a nifty HTML reporting class to re

[wtr-general] Re: Writing output to a file

2009-04-17 Thread Claire Hill
thank you it works.. :) Godbless! On Fri, Apr 17, 2009 at 5:11 PM, Željko Filipin wrote: > On Fri, Apr 17, 2009 at 11:03, Claire Hill wrote: > > i was wondering if there's a way to put the output of a ruby script into > a file, like using puts("TEST PASSED" + "#{Time.now}") into a certain file

[wtr-general] Re: Writing output to a file

2009-04-17 Thread Željko Filipin
On Fri, Apr 17, 2009 at 11:03, Claire Hill wrote: > i was wondering if there's a way to put the output of a ruby script into a file, like using puts("TEST PASSED" + "#{Time.now}") into a certain file located in c:\log.txt. I did not try it, but something like this should work: File.open('c:\log.