forked from sarfraznawaz2005/whatspup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselector.js
25 lines (17 loc) · 887 Bytes
/
selector.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = {
// user to chat with selector. We will "click" this selector so that chat window of
// specified user is opened. XXX will be replaced by actual user.
user_chat: '#pane-side span[title="XXX"]',
// textbox selector where message will be typed
chat_input: '#main > footer div.selectable-text[contenteditable]',
// used to read last message sent by other person
last_message: '#main div.message-in',
// last message sent by you
last_message_sent: '#main div.message-out span.selectable-text:last-child',
// used to check if your messsage was read
last_message_read: '#main div.message-out span[data-icon]:last-child',
// gets username for conversation thread
user_name: '#main > header span[title]',
// checks if there are new messages by any users
new_message_user: '#pane-side div.CxUIE span[title]'
}