Get browser version using selenium webdriver

前端 未结 8 1453
醉话见心
醉话见心 2020-12-06 09:06

How would I get the browser version being used?

>>> from selenium import webdriver
>>> driver = webdriver.Firefox()
>>> print vers         


        
8条回答
  •  醉话见心
    2020-12-06 09:40

    Just answering this question for Python users who want to print all the capabilities as I was searching for it before I knew it . Below command works.

    print driver.capabilities

提交回复
热议问题