Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

356
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda