def set_country(text):
    is_change_currency_displayed = driver1.find_element_by_id(
        'siteSelectorList').is_displayed()
if not is_change_currency_displayed:
    one = WebDriverWait(driver1, 10).until(EC.element_to_be_clickable((By.
        CLASS_NAME, 'selected-currency')))
one.click()
div = WebDriverWait(driver1, 10).until(EC.visibility_of_element_located((By
    .CLASS_NAME, 'site-selector-list')))
a_tags = div.find_elements_by_tag_name('a')
for a in a_tags:
    pass
selenium python, щелкнув href по тексту внутри