Chaoui05 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks ! I'am beginner and my issue is relatively simple i think. I would like to have a carriage return after my test because i have two tests in one line which appears in my Shell. Here is my test
print $driver->get_title();
And here my output in Shell :

FISE TXT Source Fileok 164 - Logout ok

How can i do? Thanks all monks !

Replies are listed 'Best First'.
Re: Carriage return in Selenium
by choroba (Cardinal) on May 13, 2016 at 13:58 UTC
    You only showed one print. Do you mean your page has two titles? Or, do you just want to print a newline?
    print "\n";

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
      I meaned i have one title i would like to get by print in my Shell by this last was in the same line than following test. Because of absence of carriage return. But it's ok now with help here . Thanks !!!
Re: Carriage return in Selenium
by stevieb (Canon) on May 13, 2016 at 13:58 UTC

    If I understand you correctly:

    print $driver->get_title() ."\n";

    Or, more verbosely:

    my $title = $driver->get_title; print "$title\n";

      I would tend to think in terms of just another list item:
          print $driver->get_title(), "\n";
          print $driver->get_tootle(), "\n";
      Why bother to concatenate? (Update: Or do I simply misunderstand Chaoui05's original question?)


      Give a man a fish:  <%-{-{-{-<

        Thanks it's ok , it' works now
      Many Thanks ! It works fine ! :)