From 612ab8e9750cd35691b40cac4a6aa637ec74a897 Mon Sep 17 00:00:00 2001 From: gregory Date: Fri, 14 Mar 2025 09:54:44 -0400 Subject: [PATCH] fix issue with response design, add some windows documentation --- README.md | 7 +++++++ save_progress_reports.py | 3 +++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index f07e1b1..0079ea8 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,18 @@ Clone this repository Navigate to the resulting directory Create a virtual environment and install dependencies +### UNIX-Like ```bash python -m venv .venv source .venv/bin/activate pip install -r requirements.txt ``` +### Windows +```bat +py -m venv .venv +.venv\Scripts\activate +pip install -r requirements.txt +``` Update config.ini with your Flight Schedule Pro tenant ID, username, and password diff --git a/save_progress_reports.py b/save_progress_reports.py index 4ba4c9c..226446d 100644 --- a/save_progress_reports.py +++ b/save_progress_reports.py @@ -72,6 +72,9 @@ if driver_type == GECKO_DRIVER: opt.binary_location = config['firefox'].get('binary_path') if not args.show_browser: opt.add_argument('-headless') + # Force window size to avoid issues with responsive design + opt.add_argument("--width=1920") + opt.add_argument("--height=1080") # Disable print dialog. Causes race conditions with window switching firefox_profile = FirefoxProfile() firefox_profile.set_preference("print.enabled", False)