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

125
Vistas
How can I access link by selenium?

Problem : can not click link which is using javascript by selenium.

tried : 1. element = driver.find_element_by_css_selector(a {href: "javascript:void(0)"} SyntaxError: invalid syntax

  1. element = driver.execute_script("javascript_:void(0)") Nothing happened.

element <a href="javascript_:void(0)" onclick="changeVis('dnskvmenu', 'dnskvtree')">「戒蘊篇」</a>

How can I access link by selenium? How can I click that link? I have found similar problem but I can not understand answer. Does anyone know the reason of this problem? Or are there other ways to access the link?

Access link by url which is javascript using selenium enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Find the element you want with nth-child, based on the div that the link is located in.

#sidebarElement a:nth-child(1)

about 4 years ago · Juan Pablo Isaza Denunciar
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