Sunday, November 7, 2021

Selenium with Python Basic Programs

Steps to download and run the Selenium with Python Programs

Step 1: Download and install python 3.x.x

Python Download Link

Step 2: Download and install Pycharm IDE

PyCharm IDE Download Link

Step 2A: Install the following plugins , then add these plugis to your project in Pycharm using: File-Setting->Project: xxx-> Python Intrepreter

  • Selenium
  • In the windows command line navigate to python installation folder, then run the command:- pip install -U selenium

  • openpyxl
  • In the windows command line navigate to python installation folder, then run the command:- pip install openpyxl

  • seletool
  • In the windows command line navigate to python installation folder, then run the command:- pip install seletools

  • pytest
  • In the windows command line navigate to python installation folder, then run the command:- pip3 install pytest

  • pytest-html
  • In the windows command line navigate to python installation folder, then run the command:- pip install pytest-html

  • html-testRunner
  • In the windows command line navigate to python installation folder, then run the command:- pip install html-testRunner

  • Allure Report
  • Downlod and extarct the zip file and save in some folder to support the allure report generation process.

    Download zip file for Allure

Step 3: Download the programs(Zip file) using below link, extract(UnZip) the file.

Download Selenium with Python Programs

Step 4: Open the project folder(pythonBasics) in Pycharm, then you can view and run the programs using pycharm IDE.

Setp 4A : To open the prject, Go to:- File-> Open-> Select the programs Folder (pythonBasics) , Click ok

Setp 4B : Select the Python Interpreter, Go to:- File->Settings->Project:Python Basics-> Python Interpreter -> Select Python 3.10.X or above , also select all the plugins given above, then click ok

Now programs are ready for run.

No comments:

Post a Comment