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

150
Visualizações
Want to use .sendKeys(Keys.ENTER); but not a text field

There is an element that is not a text box or a button, there are just a list of items. And me sending enter on the webpage would clear my list of orders from the UI.

I was trying to use driver.findElement(By.xpath("xpath_name").sendKeys(Keys.ENTER); I tried to .click() the same element and it works.. But when I try to sendKeys(Enter), it says element is not interactable.

All the examples of internet only explained about sending Enter key after typing something or inside a textField.

I tried js.executeScript as well.. still element is not interactable is the issue I get.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Please use that sendkeys on different element, your current accessing element is not visible on the page. so try it on visible element in your page.

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