This document refers to the details to run a suite of automated scripts written using Selenium with Python, for the Factor Cloud website
-
On Windows, download Git Bash, a tool to run shell commands, from the Official website and install it
-
Download the latest Python stable version from the Official website and install it
-
Open the Git Bash console and navigate to the folder which will contain the python virtual environment folder and run the following command:
python -m venv MiEntorno
where “MiEntorno” is the folder for the virtual environment
- Once the environment is created, it must be activated, using the following command:
source MiEntorno/Scripts/activate
- If we want to deactivate the virtual environment, we can use the following command:
deactivate
- Now, still using Git Bash console, download selenium using pip package manager:
pip install selenium
- Navigate to the directory with the automation scripts and finally run the .py file to run the automated tests:
python factor_cloud.py
- Google Chrome, version: 111.0.5563.65 (Build oficial) (64 bits)
- Python, version: 3.10.10
- Selenium, version: 4.8.2
- async-generator==1.10
- attrs==22.2.0
- certifi==2022.12.7
- cffi==1.15.1
- exceptiongroup==1.1.1
- h11==0.14.0
- idna==3.4
- outcome==1.2.0
- pycparser==2.21
- PySocks==1.7.1
- sniffio==1.3.0
- sortedcontainers==2.4.0
- trio==0.22.0
- trio-websocket==0.10.0
- urllib3==1.26.15
- wsproto==1.2.0