import BaseContactsPage from 'automation.client.ui/src/page_objects/web/contacts/pages/base.contacts.page.js'
BaseContactsPage
Extends:
BaseContactsPage
Constructor Summary
Public Constructor | ||
public |
constructor(args: args) |
Member Summary
Public Members | ||
public |
navPanel: * |
Method Summary
Public Methods | ||
public |
async chatIconPresent(name: String): Boolean Finds if the contact has a chat option on the contact container |
|
public |
contactNamed(name: *): * |
|
public |
contactPresence(): * |
|
public |
|
|
public |
contactsListItems(): * |
|
public |
dropdownItems(): * |
|
public |
async findContact(name: String): Element Internal method to find contact element |
|
public |
async getNamesInList(namesList: Array): Array Get names in current list |
|
public |
async getScrollTop(): Integer Get scrolltop value for contactsListContainen |
|
public |
async getVisibleContactsList(): Array Gets the contacts list items on page |
|
public |
noContactsMessage(): * |
|
public |
async scrollContactsListContainerToTop() Scrolls contactListContainer to the top |
|
public |
async scrollToContact(contact: String, additionalOffset: Integer) Scrolls to contact. |
|
public |
async selectContact(name: String) Click on contact with provided name |
|
public |
showAllButton(): * |
|
public |
showAvailableButton(): * |
|
public |
showDropdown(): * |
|
public |
async showFilterOptions() Click on the filter dropdown to show it |
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 chatIconPresent(name: String): Boolean source
Finds if the contact has a chat option on the contact container
Params:
Name | Type | Attribute | Description |
name | String | of Contact |
public async findContact(name: String): Element source
Internal method to find contact element
Params:
Name | Type | Attribute | Description |
name | String | Name of contact |
public async getNamesInList(namesList: Array): Array source
Get names in current list
Params:
Name | Type | Attribute | Description |
namesList | Array | Array of names |
public async getScrollTop(): Integer source
Get scrolltop value for contactsListContainen
Return:
Integer | Value of scrolltop |
public async getVisibleContactsList(): Array source
Gets the contacts list items on page
TODO:
- Optimize this. It's slow.
public async scrollToContact(contact: String, additionalOffset: Integer) source
Scrolls to contact.
Params:
Name | Type | Attribute | Description |
contact | String | Contact element |
|
additionalOffset | Integer | Amount of additional pixels to scroll |