Skip to content

Commit

Permalink
Ensure month selection in Gmail uses integer index
Browse files Browse the repository at this point in the history
  • Loading branch information
david96182 committed May 21, 2024
1 parent 4f96ada commit da8d5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninjemail/email_providers/gmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]')))
Expand Down

0 comments on commit da8d5a4

Please sign in to comment.