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 get System HostName using Sahi Script

balasubramanibbalasubramanib Members
edited November -1 in Sahi - Open Source
Hi

I'm new to Sahi, i would like to know how to get the system HostName using Sahi Script


Thanks in Advance,

Regards,
Balasubramani

Comments

  • Hi Balasubramani,

    You can use:

    var $hostName = Packages.java.net.InetAddress.getLocalHost().getHostName();
    _alert($hostName);

    Regards
    Sumitra
Sign In or Register to comment.