18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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
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
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
_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