Skip to content

Commit

Permalink
fix: set correct nr of weeks
Browse files Browse the repository at this point in the history
  • Loading branch information
seblum committed Jan 17, 2024
1 parent c4f74fd commit 5c2c823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slotBooker/slotbooker/ui_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def switch_day(self) -> str:
"""
day, next_week, nr_weeks = get_day(self.days_before_bookable)
if next_week:
while nr_weeks >= 0:
while nr_weeks > 0:
WebDriverWait(self.driver, 20).until(
EC.element_to_be_clickable(
(By.XPATH, f"{get_xpath_booking_head()}[3]/div[9]/div/div/i")
Expand Down

0 comments on commit 5c2c823

Please sign in to comment.