There is a unique element on the page which is neither a text box nor a button, it consists of a list of items. Strangely, pressing enter on the webpage causes my list of orders to disappear from the user interface.
I attempted to utilize
driver.findElement(By.xpath("xpath_name").sendKeys(Keys.ENTER);
Interestingly enough, clicking on the same element worked fine..
However, attempting to sendKeys(Enter)
resulted in an error stating that the element is not interactable.
All the resources I found online only discussed sending the Enter key after typing something or within a textField
.
I even tried using js.executeScript
.. but still encountered the issue of the element not being interactable.