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.
Can sahi detect configuration settings of the web application ?
I was wondering if sahi could auto detect the following things:
1. Browser name and version it has been invoked on
2. Application server of the installed web application
3. Operating system of the installed web application
Is there any way i can get these details without having to hard code them. I am using sahi with java.
Thanks,
Ajay
1. Browser name and version it has been invoked on
2. Application server of the installed web application
3. Operating system of the installed web application
Is there any way i can get these details without having to hard code them. I am using sahi with java.
Thanks,
Ajay
Comments
I really would appreciate an answer.
Have a nice day
Wormi
1. Browser name and version it has been invoked on
You can use navigator.userAgent and navigator.appName to get information about your browser.
In java, you could use:
browser.fetch("navigator.userAgent")
and
browser.fetch("navigator.appName")
2. Application server of the installed web application
3. Operating system of the installed web application
You will have get this information from your web application, or use Java to get this. If your web server is on the same machine as Sahi, then it may be easier, by looking at files, processes etc.
Globalworming:
Apart from navigator.appName and navigator.userAgent, there are Sahi APIs
_isIE
_isFF
_isFF3
_isChrome
_isSafari
which can be used to check for browsers.
Regards,
Narayan
thank you narayan