Skip to content

Commit

Permalink
fix: Cotswold District Council
Browse files Browse the repository at this point in the history
fix: #1238
  • Loading branch information
m26dvd committed Feb 17, 2025
1 parent f1b558d commit 29bd623
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,21 @@ def parse_data(self, page: str, **kwargs) -> dict:
# If you bang in the house number (or property name) and postcode in the box it should find your property
wait = WebDriverWait(driver, 60)
address_entry_field = wait.until(
EC.presence_of_element_located(
(By.XPATH, '//*[@id="combobox-input-20"]')
)
EC.element_to_be_clickable((By.XPATH, '//*[@id="combobox-input-22"]'))
)

address_entry_field.send_keys(str(full_address))

address_entry_field = wait.until(
EC.element_to_be_clickable((By.XPATH, '//*[@id="combobox-input-20"]'))
EC.element_to_be_clickable((By.XPATH, '//*[@id="combobox-input-22"]'))
)
address_entry_field.click()
address_entry_field.send_keys(Keys.BACKSPACE)
address_entry_field.send_keys(str(full_address[len(full_address) - 1]))

first_found_address = wait.until(
EC.element_to_be_clickable(
(By.XPATH, '//*[@id="dropdown-element-20"]/ul')
(By.XPATH, '//*[@id="dropdown-element-22"]/ul')
)
)

Expand Down

0 comments on commit 29bd623

Please sign in to comment.