Skip to content

Commit

Permalink
fix: West Oxfordshire District Council
Browse files Browse the repository at this point in the history
  • Loading branch information
m26dvd committed Jan 7, 2025
1 parent f777b04 commit 58036a7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ def parse_data(self, page: str, **kwargs) -> dict:
wait = WebDriverWait(driver, 60)
address_entry_field = wait.until(
EC.presence_of_element_located(
(By.XPATH, '//*[@id="combobox-input-19"]')
(By.XPATH, '//*[@id="combobox-input-20"]')
)
)

address_entry_field.send_keys(str(full_address))

address_entry_field = wait.until(
EC.element_to_be_clickable((By.XPATH, '//*[@id="combobox-input-19"]'))
EC.element_to_be_clickable((By.XPATH, '//*[@id="combobox-input-20"]'))
)
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-19"]/ul')
(By.XPATH, '//*[@id="dropdown-element-20"]/ul')
)
)

Expand Down

0 comments on commit 58036a7

Please sign in to comment.