How would I get the browser version being used?
>>> from selenium import webdriver
>>> driver = webdriver.Firefox()
>>> print vers
If driver.capabilities['version']
does not work for you, check the capabilities. The version number is there but it might be under a different key. For example I was getting a key error on Windows 10 when trying to access the version number with the version
key.
To check capabilities:
print driver.capabilities
For me, this works on Chrome/Linux
driver.capabilities['version']
And this works on Chrome/Windows 10
driver.capabilities['browserVersion']