Professional Documents
Culture Documents
cbox3 = driver.find_element_by_id("txtPaisNac")
all_options = cbox3.find_elements_by_tag_name("option")
for option in all_options:
if option.get_attribute("value") == '406':
option.click()
driver.find_element_by_id("txtFecha").send_keys(exp_date_value)
driver.find_element_by_id("btnEnviar").submit()
try:
assert "En este momento no hay citas disponibles." in
driver.page_source
driver.find_element_by_id("btnSalir").click()
except AssertionError:
succes = True
#print("Success")