I am having trouble with a selenium send keys on discord. I am attempting to send a message to a user.
The error I get is:
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
The HTML is as follows: [1]: https://i.sstatic.net/H8Q7h.png [![HTML][1]][1]
The Object im trying to send_keys that is highlighted by the xpath is as follows:
[2]: https://i.sstatic.net/goUn0.png
[![enter image description here][2]][2]
My code is as follows
inputMessage = wait.until(EC.visibility_of_element_located((By.XPATH,"//div[contains(text(),'Message @')]/..")))
#inputMessage = driver.find_element_by_xpath("//div[contains(text(),'Message @')]/..")
inputMessage.send_keys(msg,Keys.ENTER)
I have attempted several ways to try to solve the error but have not succeeded. Any help would be appreciated. Thank you.