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.

Display browser used in log output

jace.hopperjace.hopper Members
edited November -1 in Sahi - Open Source
When running tests on multiple browsers simultaneously, is there a way to display the browser type and version used for the test in the log files that are generated? Thanks!

Comments

  • narayannarayan Administrators
    Hi Jace,

    Yeah, it should be made visible in the log file. Will see how it can be added.

    For you now you could do

    _log(navigator.userAgent, "CUSTOM1");
    _log(navigator.appName, "CUSTOM1");

    to display the browser name.

    Regards,
    Narayan
  • How can _IsSafari be used? I am not seeing any documentation around this. Thanks!
  • narayannarayan Administrators
    Hi,

    _isSafari() returns true if you are on Safari else false. You can use it in "if" statements. It is similar to isIE(). Documentation will be updated soon.

    Regards,
    Narayan
Sign In or Register to comment.