The title says it all, I want to programmatically get the version of Selenium I have installed on my Python environment.
After the project is created, navigate to File -> Settings-> Project -> Project Interpreter, you will be able to see the Selenium package installed already.
The following are the different versions of Selenium: > Selenium 1. > Selenium 2. > Selenium 3.
Try using pip show selenium
, that worked for me
As simply as
>>> import selenium
>>> selenium.__version__
'2.37.2'
or for command line:
$ python -c "import selenium; print(selenium.__version__)"
2.37.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With