How to check selenium version in Python

How to check selenium version in Python

Selenium is a modern technology to automate every things with the help of browsers. It is not only for the boring test things. According to selenium authorities , it automates browsers. It's primary purpose is that,but it is not for testing only. You can use the selenium power to extend to whatever scale you want

If you want to make the browser to do these automated things with the help of selenium then you need selenium web driver. It is language (python, java, dot net, c++ etc., ) based and as it's name suggests it drives the browser (firefox, chrome, safari, edge, ie etc.,) native as a real user could both in local machines as well remote machines.

Webdriver is an effective programming interface. It can be installed easily for all the browsers with some simple installation methods and steps. Selenium is purely language based and also on the implementations of the browser controlling codes.

It can be used with all the popular browsers like chromium, firefox, safari, edge and internet explorer. After the successful installation of the selenium, you can check the webdriver version easily with following method. In your Python shell access, you please type the following lines of codes one by one.

import selenium

from selenium import webdriver

print ("The webdriver version %s" % (webdriver.version), " is installed in your machine ")

You may get the following error after typing the word import selenium,

selinium-not-installed.jpg

This shows you could not installed the selenium successfully. Or if you are getting this error even after your successful installation of the selenium, then you please check the installation path and folder name. That could be the culprit for the error.

After every thing, you may find the selenium webdriver version as in the following selenium-webdriver-version.jpg

And following is the simplest method is how to check selenium version in python Just type the

help(selenium)

in python shell and you will get the following result

selenium-webdriver-version1.jpg

In the above result you can find the selenium webdriver version installed along with the installation path and other details.