1
WebElement sdate = driver.findElement(By.xpath("//input[contains(@name,'dateOfServiceInput')]"));
sdate.sendKeys("20180531");

Error:

org.openqa.selenium.ElementNotInteractableException: Element is not reachable by keyboard

Narendra Jadhav
  • 10,052
  • 15
  • 33
  • 44
Charan Raz
  • 71
  • 1
  • 3
  • 1
    You could just set the elements value property. – Ryan Wilson Jun 01 '18 at 16:48
  • 3
    Another solution should be, in Chrome, inspect the element...that should open the `Elements` tab in the Chrome Developer Tools, with the element highlighted...right click on the highlighted element and choose `Copy -> Copy Xpath`...now paste that xpath into your `By.xpath` instruction....profit – Hackerman Jun 01 '18 at 16:59
  • 1
    Chech this discussion [org.openqa.selenium.ElementNotInteractableException: Element is not reachable by keyboard: while sending text to FirstName field in Facebook](https://stackoverflow.com/questions/49864965/org-openqa-selenium-elementnotinteractableexception-element-is-not-reachable-by/49872160#49872160) – undetected Selenium Jun 04 '18 at 09:31

0 Answers0