How to get the version of Selenium that is currently installed from Python

The title says it all, I want to programmatically get the version of Selenium that I installed in my Python environment.

+4
source share
1 answer

As simple as

>>> import selenium
>>> selenium.__version__
'2.37.2'

or for the command line:

$ python -c "import selenium; print(selenium.__version__)"
2.37.2
+11
source

All Articles