-
Notifications
You must be signed in to change notification settings - Fork 8
Selenium Testing
Nathanael Johnson edited this page Nov 29, 2022
·
4 revisions
Note: python3
and pip3
will be used for MacOS and Linux machines. If on Windows, python
and pip
will be used
- Use command
pip3 install -r requirements.txt
to install required packages in terminal - Ensure Chrome is installed on the machine you want to run the Selenium tests on
- Verify the current version of Chrome installed on your machine
- The following link will take you to the Chromedriver install page 'https://chromedriver.chromium.org'
- Install the Chromedriver version that matches the version of Chrome installed
- Verify Chromedriver is in PATH. Just placing it in the 'tests' directory has given the greatest success
- Running the command
python3 dbcreate.py .
will generate a local database named 'account.db'
- Use command
python3 run.py .
to run the local server
- Move into the 'tests' directory
- In separate terminal instance, use command
python3 <filename>
to execute a Selenium test