org.openqa.selenium.ElementNotInteractableException: Element is not reachable by keyboard: while sending text to FirstName field in Facebook

前端 未结 4 1822
囚心锁ツ
囚心锁ツ 2020-11-22 02:35

The error is :

Exception in thread \"main\" org.openqa.selenium.ElementNotInteractableException: Element 
is not rea
4条回答
  •  孤街浪徒
    2020-11-22 02:39

    I had a similar issue, on a button when click() operation was performed, org.openqa.selenium.ElementNotInteractableException Exception was getting displayed. As mentioned by DebanjanB in his answer, the element was not reachable by keyboard. To solve this, replaced click() with sendKeys(Keys.ENTER) and button got clicked.

提交回复
热议问题