Micro Focus QTP (UFT) Forums
Get IE version - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Get IE version (/Thread-Get-IE-version)



Get IE version - guin.anirban - 09-24-2010

How can i get the Internet Explorer version without using GetROProperty?
I don't want to use Browser("Creation Time:=0").GetROProperty("version") or Brow[/font]ser("Creation Time:=0").GetROProperty("application version").
How can i get the Internet Explorer version without using GetROProperty?
I don't want to use Browser("Creation Time:=0").GetROProperty("version") or Browser("Creation Time:=0").GetROProperty("application version").


RE: Get IE version - Jyobtech - 09-24-2010

Hi Guin Anirban,
Please find the code ,Its working fine

Code:
Dim fso, ver, version
Set fso = CreateObject("Scripting.FileSystemObject")
ver = fso.GetFileVersion("C:\Program Files\Internet Explorer\iexplore.exe")
msgbox ver
If Len(ver) Then
    Reporter.ReportEvent micPass,"Step 01:", "Internet Explorer version determined sucessfully"
Else
    Reporter.ReportEvent micFail, "Step 01:", "Internet Explorer version could not be determined sucessfully"
End If
version=cint(Left(ver, 1))
'This line is required only if you want the first digit of the version number


RE: Get IE version - guin.anirban - 09-27-2010

Thanks for your valuable answer.