1

I’m running tests using Watir and certain results get posted to the terminal for convenience by using puts or print.

Is there a way of extracting or dumping the terminal output somewhere if for example I wanted to store it or send it in an email?

bobbie_j
  • 25
  • 5
  • The duplicate talks about `$stderr` but the answer is completely analogous for `$stdout`: divert it to a `StringIO`. – Amadan Nov 17 '22 at 02:10

0 Answers0