Skip to content

Commit 9b27224

Browse files
committed
fix: Staffordshire Moorlands District Council
fix: #1535
1 parent c7bf6c1 commit 9b27224

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

uk_bin_collection/uk_bin_collection/councils/StaffordshireMoorlandsDistrictCouncil.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ def parse_data(self, page: str, **kwargs) -> dict:
7777
)
7878
submit.click()
7979

80+
WebDriverWait(driver, 10).until(
81+
EC.presence_of_element_located((By.CLASS_NAME, "bin-collection__month"))
82+
)
83+
8084
soup = BeautifulSoup(driver.page_source, features="html.parser")
8185

8286
# Quit Selenium webdriver to release session

0 commit comments

Comments
 (0)