fix issue with response design, add some windows documentation

This commit is contained in:
gregory 2025-03-14 09:54:44 -04:00
parent 9d3f9e9bfb
commit 612ab8e975
2 changed files with 10 additions and 0 deletions

View File

@ -18,11 +18,18 @@ Clone this repository
Navigate to the resulting directory Navigate to the resulting directory
Create a virtual environment and install dependencies Create a virtual environment and install dependencies
### UNIX-Like
```bash ```bash
python -m venv .venv python -m venv .venv
source .venv/bin/activate source .venv/bin/activate
pip install -r requirements.txt 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 Update config.ini with your Flight Schedule Pro tenant ID, username, and password

View File

@ -72,6 +72,9 @@ if driver_type == GECKO_DRIVER:
opt.binary_location = config['firefox'].get('binary_path') opt.binary_location = config['firefox'].get('binary_path')
if not args.show_browser: if not args.show_browser:
opt.add_argument('-headless') 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 # Disable print dialog. Causes race conditions with window switching
firefox_profile = FirefoxProfile() firefox_profile = FirefoxProfile()
firefox_profile.set_preference("print.enabled", False) firefox_profile.set_preference("print.enabled", False)