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.

detection of the version of iexplore with Sahi

sahi_nelsonsahi_nelson Members
edited November -1 in Sahi - Open Source
how i know the version of my browers iexplorer with sahi,

with the function isIE() , i know the browser but i need the version


Any idea?
thans

Comments

  • Hi nelson,

    I tried "navigator.appVersion" in the Sahi controller, the output is:
    5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Ubuntu/10.04 Chromium/10.0.648.133 Chrome/10.0.648.133 Safari/534.16
    I have no idea if this command works in IE too, but i hope it s a hint for you.

    regards
    Wormi
  • Hi nelson,

    You can use the below function,

    var $diag = _sahi.getDiagnostics();

    $diag contains the following details,

    UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
    Browser Name: Netscape
    Browser Version: 5.0 (Windows)
    Native XMLHttpRequest: true
    Java Enabled: true
    Cookie Enabled: true
    osname: Windows XP
    osversion: 5.1
    osarch: x86
    istasklistavailable: true
    javadir: C:\Program Files\Java\jre6
    javaversion: 1.6.0_24
    iskeytoolavailable: true

    Also, if you want to log it in to play logs,

    use _log(_sahi.getDiagnostics(), 'custom')

    Regards
    Sumitra
Sign In or Register to comment.