From da8d5a4231fe9294e48d62bed25b4b5a7e3e1981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Puerta=20Mart=C3=ADn?= Date: Tue, 21 May 2024 19:37:23 -0400 Subject: [PATCH] Ensure month selection in Gmail uses integer index --- ninjemail/email_providers/gmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ninjemail/email_providers/gmail.py b/ninjemail/email_providers/gmail.py index a96294c..75888a2 100644 --- a/ninjemail/email_providers/gmail.py +++ b/ninjemail/email_providers/gmail.py @@ -73,7 +73,7 @@ def create_account(driver, # select birthdate time.sleep(10) month_combobox = Select(WebDriverWait(driver, WAIT).until(EC.element_to_be_clickable((By.ID, 'month')))) - month_combobox.select_by_index(month) + month_combobox.select_by_index(int(month)) # driver.find_element(By.XPATH, f'//*[@id="month"]/option[{month}]').click() alternative day_input = WebDriverWait(driver, WAIT).until(EC.presence_of_element_located((By.XPATH, '//input[@name="day"]')))