Forum Discussion

joffre's avatar
joffre
Regular Contributor
11 years ago

Checking browser version

How can I check the browser version?



I've tried the options the are presented on support page Checking the Current Browser (http://support.smartbear.com/viewarticle/27184/) but the examples doesn't work.



What can I do?



I'm using Firefox, IE, Chrome and Safari for automation.

1 Reply

  • Hi Joffre,



    First, make sure that the browser is executed, as it won't retrieve the information if it's not.



    Then, use this code (javascript)



    Sys.Browser(<BROWSER>).FileVersionInfo.MajorPart



    In FileVersionInfo there is more information about the browser version



    Hope it helped!