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

205
Vistas
JavaScript Bubbling Event - Web Scraping python and selenium

I'm trying to web scrape this site https://www.parts-catalogs.com/us/demo/#/groups?catalogId=vw&carId=fccabcf290dc6cfdd3d401531d4ad6a8&q=WVWMA83BXWE446629&criteria=10%2aWVWMA83BXWE446629%2131a3cee7 , but I'm having a problem. The site has JavaScript Bubbling Event.

I tried to select my element and use the bubbling event function as JavaScript code, but I get this error: " JavascriptException: Message: SyntaxError: function statement requires a name ".

If anyone has any solution or some code that can help me, I would be grateful!

here is the code:

# 1
driver.get('https://www.parts-catalogs.com/us/demo/#/groups?catalogId=vw&carId=fccabcf290dc6cfdd3d401531d4ad6a8&q=WVWMA83BXWE446629&criteria=10%2aWVWMA83BXWE446629%2131a3cee7')

# 2
div = driver.find_element_by_class_name('_2F3__SgJeuwKjU27Ngd6Pr')
ul = div.find_element_by_tag_name('ul')
element = ul.find_elements_by_tag_name('li')[0]

# 3
js = """
  function(t) {
  if (t.target === t.currentTarget || t.timeStamp >= i || t.timeStamp <= 0 || t.target.ownerDocument !== document) return o.apply(this, arguments)
}
"""

driver.execute_script(js.click(), element)

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