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