Skip to content

Commit

Permalink
Merge pull request #690 from m26dvd/Renfrewshire
Browse files Browse the repository at this point in the history
fix: Handling the "Website cookies enhance your user experience." button
  • Loading branch information
dp247 authored May 1, 2024
2 parents 570545c + 8ccb059 commit ffb03dc
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def parse_data(self, page: str, **kwargs) -> dict:
driver.get(
"https://www.renfrewshire.gov.uk/article/2320/Check-your-bin-collection-day"
)

#accept_button = WebDriverWait(driver, timeout=30).until(
# EC.element_to_be_clickable(
# (By.CLASS_NAME, "btn btn--contrast btn--complete")
# )
#)
#accept_button.click()
accept_button = WebDriverWait(driver, timeout=30).until(
EC.element_to_be_clickable(
(By.ID, "ccc-notify-accept")
)
)
accept_button.click()

# Wait for the postcode field to appear then populate it
inputElement_postcode = WebDriverWait(driver, 30).until(
Expand Down

0 comments on commit ffb03dc

Please sign in to comment.