

And this is not just limited to capturing screenshots, there’s a lot more you can do using this awesome combination. Selenium and Python are the goto choices when it comes to Selenium test automation. Why Selenium & Python Are Well-Suited For Capturing Screenshots? Now let’s make a trial file named check_setup.py. You can choose any browser of your choice, and you can download the drivers from the following links : Next, we need a driver to proceed with clicking Python Selenium screenshots of webpages.Also, if you are not in the same folder where you have archived the downloaded Selenium Python bindings then replace setup.py with full path to setup.py. Once you do this, run the following command to install the bindings –Īgain, remember you only need this if you don’t want to install using pip. Alternatively, if you don’t like this installation mechanism, you may first download the Selenium-Python source distribution from Pypi.

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.

