How would I get the browser version being used?
>>> from selenium import webdriver
>>> driver = webdriver.Firefox()
>>> print version <-- how to do this?
Firefox 12.0
The capabilities
property is a dictionary containing information about the browser itself, so this should work:
print(driver.capabilities['version'])