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)