A Python 3.x tool that can be used for website testing.
- Python 3.x
- Selenium
-
sudo apt install python3
-
- Download and install python 3.x from the official Python website: python.org
-
-
pip3 install -r requirements.txt
- If the packages are not up-to-date, especially the chromedriver, run the following:
pip install --upgrade -r requirements.txt
-
-
- Download chromedriver
- Add an environment variable
Path
with the directory of the chromedriver executable.
- config.json
- Update the url to your test website
- If login is needed, enter accordingly. Otherwise, you may ignore the login part. The idea is that you can access the configuration as an object in the code.
- To run the code:
python3 main_script.py