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

355
Vistas
how can i send ENTER/RETURN key with javascript executor code in selenium python?

Hi all i am new to python selenium, i am in the process of automating a website but unfortunately the search text box of the website does not have any buttons to click once you enter the text

things i tried

1)driver.sendkeys-not working

2)JavaScript executor - just sends the data but no clue how to send the Enter/return key

 driver.execute_script("document.getElementsByClassName('tau-search__input')[0].value ='" + var+"'");

3}Action chains class- tried to send keys but yet no result

also the search icon highlighted here is unable to send data and we can only send data by entering values and clicking on enter at the end enter image description here

there are no frames there too please help

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

0

Try this:

input_element = driver.find_elements_by_class_name("tau-search__input")[0]
input_element.send_keys("your_text_string_input" + Keys.ENTER)
about 4 years ago · Juan Pablo Isaza Denunciar

0

I hope your xpath is wrong, you are pointing to the search icon not the search box. please share us the element screenshot if possible. your url is not working for us.

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