Issue
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
Solution
The capabilities
property is a dictionary containing information about the browser itself, so this should work:
print(driver.capabilities['version'])
Answered By - Matthew Trevor
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.