Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.29 KB

File metadata and controls

36 lines (31 loc) · 1.29 KB

python

Tutorials and sample web automation tests project using Selenium and Python

Installation

  1. Make sure you have .Python 3 or newer installed on your machine (project was developed using python 3.12). Check installation
    python -V
  2. Clone this repository to your local machine.
  3. Open folder (selenium-webdriver-python) in VS Code.
  4. Using terminal navigate to project folder and run
    pip install -r requirements.txt

Usage

  1. Make sure you have the appropriate browser installed (https://www.selenium.dev/documentation/webdriver/browsers/)
  2. Open the project directory in VS Code or your preferred IDE.
  3. Run the tests using your preferred test runner or IDE or from terminal, e.g. use any of the below:
    pytest .\tests\test_selenium_web_form.py
    pytest -m selenium
    pytest -m selenium_pom --html=results.html
    pytest -m selenium_parallel -n auto --html=report.html

Tech

  • python 3.12
  • selenium 4
  • pytest 8

YT channel

Please check my YouTube channel for step by step implementation or detailed tutorials on automation and more: https://www.youtube.com/@TechWithAlexDuta

License

This project is licensed under the MIT License - see the LICENSE file for details.