wait = WebDriverWait(driver, 10, poll_frequency=1, ignored_exceptions=[
    StaleElementReferenceException])
a = wait.until(EC.text_to_be_present_in_element(By.YourBy))
selenium python, щелкнув href по тексту внутри