18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

How to print in SAHI

dashboarddashboard Members
edited November 2013 in Sahi - Open Source
How to print in SAHI.

For example(www.idera.com)

_print("Testing Resources Tab");
_click(_link("Resources"));

In the above code _print is not executed.

Regards
Uday






Answers

  • Use _log("Test"); You can see this in your log files.

    If not you can write a function in java with System.out.print statement to see in your sahi console.
    You can have a look at sahi documentation for more detailed information for using java statements.

    Regards,
    Bhavitha
  • Pratyush_TytoPratyush_Tyto Members
    edited November 2013
    Hi Uday,
    Please try using the following code instead.
    _sahi.print("Testing Resources Tab");
    

    Regards.
  • Hi Pratyush,

    I dint know that, I learnt something new. !!

    Thanks
  • Hi Bhavitha,
    You can also use the _debug API, which displays the message passed on the Sahi Console.

    Regards,
    Pratyush
Sign In or Register to comment.