Total Perform Exercise

Directory Structure

.
├── data                        # json files directory
├── helpers
|   └── utils.py                # load_json() and get_elements() methods
├── logs                        # logs directory
├── model                       # models directory
├── setup
|   └── setup_app.py            # constants
|   └── setup_logger.py         # log configurations
├── main_functions.py           # exercise methods
└── README.md

Prerequisites

Python3 installed

Usage

This is an test example:

from main_functions import find_element, find_element_near_to
from model.enums import SearchType

element_a = find_element("Element1")
element_b = find_element_near_to(element_a, "class_name", search_type=SearchType.ALL)
if element_b is not None:
    print("Target Element: {}\nNearest Element: {}".format(element_a, element_b))

Author

Leonel Bonifazi