python - Get browser version using selenium webdriver -


how browser version being used?

>>> selenium import webdriver >>> driver = webdriver.firefox() >>> print version <-- how this?     firefox 12.0 

the capabilities property dictionary containing information browser itself, should work:

print driver.capabilities['version'] 

Comments