From a240459320f1b7ce2045523491a494e45b104888 Mon Sep 17 00:00:00 2001 From: mfrank Date: Sat, 18 Jan 2025 22:04:06 +0100 Subject: [PATCH] Add requirements.txt --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index d4db1bb..5fdb491 100644 --- a/main.py +++ b/main.py @@ -49,7 +49,6 @@ def check_date(due_date, recipient_email): def check_books(user, pw, recipient_email): options = Options() options.add_argument("--headless") - options.binary_location = "/usr/bin/firefox" # Adjust if necessary driver = webdriver.Firefox(options=options) try: # Navigate to the login page @@ -71,7 +70,7 @@ def check_books(user, pw, recipient_email): login_button.click() # Wait for login to complete - wait = WebDriverWait(driver, 10) + time.sleep(5) # Check if login was successful if "Mein Konto" in driver.page_source: