diff --git a/CHANGELOG.md b/CHANGELOG.md index be5398cb..0c17d3ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ If there is no "Upgrading" header for that version, no post-upgrade actions need - A new [FAQ question](README.md#faq) was added to help users that run into issues starting the webdriver in Docker - If you find a better solution to this issue, please let me know +### Improvements +- Ensure the chromedriver version always matches the downloaded browser version +([#172](https://github.com/jdholtz/auto-southwest-check-in/issues/172)) + ### Upgrading - Upgrade the dependencies to the latest versions by running `pip install -r requirements.txt` - If you are using Python 3.7, the script still works. However, it is officially unsupported and therefore recommended to upgrade diff --git a/Dockerfile b/Dockerfile index b91e6644..a26802aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,11 +8,6 @@ RUN apk add --update --no-cache chromium gcompat COPY requirements.txt requirements.txt RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -r requirements.txt -# For some reason, downloading uc_driver results in being detected. Although the chromedriver -# will be automatically downloaded at runtime, it is downloaded now to make sure no version -# discrepancy happens. -RUN sbase get chromedriver - COPY . . ENTRYPOINT ["python3", "-u", "southwest.py"] diff --git a/lib/webdriver.py b/lib/webdriver.py index 8f3e0862..3a43390f 100644 --- a/lib/webdriver.py +++ b/lib/webdriver.py @@ -104,6 +104,7 @@ def _get_driver(self) -> Driver: browser_path = self.checkin_scheduler.reservation_monitor.config.browser_path driver = Driver( binary_location=browser_path, + driver_version="browser", # Always ensure the browser and driver versions match headless=True, uc_cdp_events=True, undetectable=True, diff --git a/requirements.txt b/requirements.txt index 6fffc075..277ff91e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ apprise==1.5.0 certifi==2023.07.22 pytz==2023.3.post1 # Remove when this script only supports Python 3.9+ requests==2.31.0 -seleniumbase==4.20.0 +seleniumbase==4.20.1