This repository contains the base setup of an UI testing project, using Python, Selenium Webdriver and Page Object Model pattern.
- Python 3.7.X
- pip and setuptools
- venv (recommended)
- Download or clone the repository
- Open a terminal
- Go to the project root directory "/HomeTask/".
- Create a virtual environment:
py -m venv venv
- Activate the virtual environment executing the following script:
.\venv\Scripts\activate
- Execute the following command to download the necessary libraries:
pip install -r requirements.txt
- Open a terminal
- From the tests folder right click on test_search.py and run as shown in the video recording.
By default, tests will be executed in Chrome (normal mode). Preferences can be changed in "/data/config.yaml" file
To check the report, open the '/results/report.html' file once the execution has finished.