Skip to content

Page Checker - Basic web page checking using Selenium

License

Notifications You must be signed in to change notification settings

getsmarter/page_checker

Repository files navigation

Page Checker - Basic web page checking using Selenium

Python GitHub tag License - MIT

Raison d'être

We require a tool that can automate post production deployment checks.

Usage

Clone the repository

git clone git@github.com:getsmarter/page_checker.git
cd page_checker

Configure

Create a local configuration file:

cp etc/config_local_template.py etc/config_local.py

Set parameters in the new, un-versioned, file. In most cases, you will only need to define the following variables to config_local.py:

  • PC_USERNAME
  • PC_PASSWORD

Run using Docker

Run docker compose up or down to run/stop the container. I.e. to start container:

docker-compose up

Manual Installation

Install system dependencies

Install Firefox - see the download page.

Install Firefox's webdriver:

# macOS
brew install geckodriver

# Debian/Ubuntu
sudo apt-get update
sudo apt-get install firefox-geckodriver

Install Python 3:

# macOS
brew install python@3

# Debian/Ubuntu
sudo apt-get update
sudo apt-get install python3

Install project packages

Create a virtual environment in the repo. Activate it whenever install packages into it or running this project.

python3 -m venv venv
source venv/bin/activate

Install production dependencies:

pip install -r requirements.txt

Or, install prod and dev dependencies at once:

pip install -r requirements-dev.txt

Configure Manual Installation

Create a local configuration file:

cp etc/config_local_template.py etc/config_local.py

Set parameters in the new, un-versioned, file. In most cases, you will only need to define the following variables to config_local.py:

  • PC_USERNAME
  • PC_PASSWORD

Run commands inside the virtual environment.

The project entrypoint is page_checker.py.

Contributing

Run pylint before submitting a PR.

About

Page Checker - Basic web page checking using Selenium

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published