Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I retrieve the version of Selenium currently installed, from Python

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

like image 576
A.R. Avatar asked Dec 06 '13 16:12

A.R.


People also ask

How do I know if Selenium is installed in Pycharm?

After the project is created, navigate to File -> Settings-> Project -> Project Interpreter, you will be able to see the Selenium package installed already.

What are the versions of Selenium?

The following are the different versions of Selenium: > Selenium 1. > Selenium 2. > Selenium 3.


2 Answers

Try using pip show selenium, that worked for me

like image 67
Mucheru Avatar answered Oct 09 '22 16:10

Mucheru


As simply as

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

or for command line:

$ python -c "import selenium; print(selenium.__version__)"
2.37.2
like image 43
alko Avatar answered Oct 09 '22 17:10

alko