

This installs Selenium’s Python bindings in your system.

Next, we install Selenium Python bindings using pip.Now try the command pip help again, you should see the screen we shared earlier. If you aren’t in the directory as that of the downloaded file, replace the file name in the command given above with the full path to the file location. Remember, you only have to do this if pip is not installed in your system. Then you have to download this get-pip.py file to any location in your system, but you should have the path to the file. If you get a response like below from pip, you are good to go. You can check if it is existing in your system by running following command in the command prompt. You would also need pip installed on your system.pip is a tool or a package manager tool for Python and it comes pre-installed with the latest versions (as you can see in the image above).So, if your Linux or Mac system is having the older version, you may consider updating them to the latest stable versions.

For Windows, you may download the Python installer from here. Python comes pre-installed with Linux & Mac systems. For learning how to use Selenium Python, you must have Python & pip installed on your system or server.Below is a list of all that you need in your machine.

We shall be using these Python bindings for Selenium to capture full page screenshots, HTML element-specific screenshots and save it in our desired location.īefore we learn how to use Selenium Python for taking screenshots, we need to install some dependencies. Selenium Python bindings is an API interface to use Python with Selenium WebDriver for writing functional/acceptance tests. Selenium has different components we have Selenium WebDriver, Selenium IDE, and Selenium Grid.
