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.
hostname as variable
can somebody advise how to obtain/set the hostname then slice it to remove https://
var $hostname = <_getHostname>.<thenSliceTheHttp:> ;
if ( $hostname == "sahi.co.in/w/" ) DoThis ();
else DoThat();
Thanks
var $hostname = <_getHostname>.<thenSliceTheHttp:> ;
if ( $hostname == "sahi.co.in/w/" ) DoThis ();
else DoThat();
Thanks
This discussion has been closed.
Comments
To remove https:// you could just do
var $url = "";
_set($url, location.href);
var $modified = $url.replace("https://", "")
if ( $modified == "sahi.co.in/w/" ) DoThis ();
else DoThat();
Regards,
Narayan