Get browser version using selenium webdriver

0
0

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
  • You must to post comments
0
0

The capabilities property is a dictionary containing information about the browser itself, so this should work:

print driver.capabilities['version']
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website