in reply to Re^5: Time elapsed with Selenium Test
in thread Time elapsed with Selenium Test

Oh Thanks ! I understand . But i use cprintf ( exactly) because i would like to add some color to differentiate my browsers . How can i do also ? To stay compatible with "TAP" ? I used before "diag" but for this reason i had to change.

Replies are listed 'Best First'.
Re^7: Time elapsed with Selenium Test
by soonix (Chancellor) on May 18, 2016 at 08:35 UTC
    Corion already suggested to prefix your Output with "#". That should be put in front of the coloring so that the test harness recognizes it.
      I'am coming back to you. Just to finish . If i have my "#" colored in beginning of my line. Something like :  cprintf ("#\x037browser chrome\x030\n"); #browser chrome (the ouput)

      Is it ok for TAP ?

      Thanks in advance !

        Not to be a broken record but you should run your tests with regular TAP oriented modules using regular Test::* oriented tools like diag, note, both of which do the # safe output, and subtest, explain, etc. Selenium can be controlled from this and others: Test::WWW::Selenium. The more you customize your tests to use non-standard stuff, the more you tilt your suite toward future abandonment. Besides, it's easier. :P

        Don't know what cprintf does different from printf. If the output lines start with "#" and not with some (possibly invisible) control character, all should be well.
        I can't reply for each comment so i do it here: Thanks
      Thank you . I thought for something different but it's ok.