Sending out the message from Facebook

How can I use selector on chat box in Facebook web page .
Once run the file , the selector become invalid

Did you find a solution for this? I’m also interested

Any solution for this?