Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!