{"repo":"ChristianAA/selenium-python-example","free":true,"listed":false,"github":"https://github.com/ChristianAA/selenium-python-example","clone":"git clone https://github.com/ChristianAA/selenium-python-example.git","description":"UI testing project example with Selenium + Python","language":"Python","stars":28,"topics":["python","selenium"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Selenium-Python-Example This repository contains the base setup of an UI testing project, using Python, Selenium Webdriver and Page Object Model pattern. A simple search in DuckDuckGo to check that results are displayed is used as example Requirements Python 3.12.3 pip (24.0) and setuptools venv (recommended) Instalation Assuming python, pip and venv are installed correctly: 1. Download or clone this repository 2. Open a terminal 3. Go to the project root directory \"/selenium-python-example/\". 4. Create a virtual environment: - (UBUNTU): python3 -m venv .venv - (WINDOWS): py -m venv venv 5. Activate the virtual environment executing the following script: - (UBUNTU): source .venv/bin/activate - (WINDOWS): .\\venv\\Scripts\\activate 6. Execute the following command to download the necessary libraries: pip install -r requirements.txt Test Execution 1. Open a terminal 2. From the project root directory run: pytest -v --html=results/report.html Configuration By default, tests will be executed in Chrome (normal mode). Preferences can be changed in \"/data/config.yaml\" file Results To check the report, open the '/results/report.html' file once the execution has finished. Links Selenium - Python Documentation Webdriver Manager for Python","default_branch":null,"files":null,"tree":[],"storefront":"/r/ChristianAA","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ChristianAA/selenium-python-example/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}