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.

Can sahi detect configuration settings of the web application ?

lalwaniajaylalwaniajay Members
edited November -1 in Sahi - Open Source
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

Comments

  • I am facing the first question too. My goal is to save a scripts runtime and the used browser in a CSV file, to easily compare the runtimes with different browsers.

    I really would appreciate an answer.
    Have a nice day
    Wormi
  • narayannarayan Administrators
    Hi Ajay,

    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
  • this could help
    thank you narayan
Sign In or Register to comment.