import ChatPage from 'automation.client.ui/src/page_objects/web/chat/chat.page.js'ChatPage
Extends:
ChatPage
Constructor Summary
| Public Constructor | ||
| public |
constructor(args: args) |
|
Member Summary
| Public Members | ||
| public |
navPanel: * |
|
Method Summary
| Public Methods | ||
| public |
chatContactSearchBar(): * |
|
| public |
chatMessageField(): * |
|
| public |
chatWindowHeader(): * |
|
| public |
async clickContact(name: String) Clicks contact with provided name |
|
| public |
contactSearchResult(contactName: *): * |
|
| public |
contactsListItems(contactName: *): * |
|
| public |
conversationWindow(): * |
|
| public |
async getChatMessages(): Array Get the first element in collection of elements |
|
| public |
messageDivs(): * |
|
| public |
newChatButton(): * |
|
| public |
async sendChatMessage(message: String) Send chat message on current chat page |
|
| public |
async startNewChatWithContact(name: String) Start a new chat with contact |
|
| public |
async visit() Visits this page |
|
Public Constructors
public constructor(args: args) source
Params:
| Name | Type | Attribute | Description |
| args | args | Args from controller |
Public Members
public navPanel: * source
Public Methods
public async clickContact(name: String) source
Clicks contact with provided name
Params:
| Name | Type | Attribute | Description |
| name | String | Name of contact |
public contactSearchResult(contactName: *): * source
Params:
| Name | Type | Attribute | Description |
| contactName | * |
Return:
| * |
public contactsListItems(contactName: *): * source
Params:
| Name | Type | Attribute | Description |
| contactName | * |
Return:
| * |
public async getChatMessages(): Array source
Get the first element in collection of elements
Example:
{
from: 'User 2',
timestamp: '12:20 PM',
message: 'hey, did you see the game?'
}
public async sendChatMessage(message: String) source
Send chat message on current chat page
Params:
| Name | Type | Attribute | Description |
| message | String | Text of message to send |