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

190
Vistas
Using selenium to click ajax button

I'm trying to understand how to interact on a site with an ajax element. I'm using selenium+phantomJS to click the "More" button which has this code:

<a class="js-cne-ajax cne-more-button cne-more-videos cne-light-button" data-ajaxurl="/genres/Books.js?page=2" rel="nofollow" href="javascript:void(0)">More</a>

I'm using this:

wait = WebDriverWait(driver, 10)
next_link = wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, "a.js-cne-ajax.cne-more-button.cne-more-videos.cne-light-button")))
next_link.click()
driver.save_screenshot('screenshot.png')

My problem is that the element seems not clickable. Can it be because is the css selector wrong or, in some way, the ajax pages needs different approach? Can the "rel=nofollow" create some problems?

about 4 years ago · Santiago Trujillo
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