I am doing web scraping to this page https://www.tudrogueriavirtual.com/ and when Selenium do the first charge to the page, I need to select the state and the city, I tried using .click
select_state = driver.find_element('xpath', '//*[@id="ship-state"]').click()
time.sleep(1)
select_state_c = driver.find_element('xpath', '//select[@id="ship-state"]/option[@value="Bogotá, D.C."]').click()
time.sleep(1)
select_state = driver.find_element('xpath', '//*[@id="ship-state"]').click()
And this not working. I also tried using .select but this didnt work
select_state = Select(driver.find_element('xpath', '//*[@id="ship-state"]'))
select_state.select_by_value("Bogotá, D.C.")
time.sleep(1)
This occurred when I execute my code. enter image description here
And this is what the page suposed show me
this is my Selenium version selenium==4.4.3