Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

145
Vistas
Selenium didn't see that attribute value has changed

I'm trying to get number of notifications from element using Selenium, but it didn't see changes. Number of messages just a number above notification icon, like on picture:

But then I trying to process this element:

notify_element = WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.CLASS_NAME, 'data-count')))
    count_of_notify = int(notify_element.get_attribute('data-count'))

I recive count_of_notify = 0. I don't understand why.

Code of this element:

<a id="notify-toggle" class="toggle link">
    <span title="Уведомления" class="data-count" data-count="1" data-icon="">
    </span>
</a>

But data-count changes depanding on number of notifications.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda