Home Manual Reference Source
public class | source

BaseContactsPage

Extends:

* → BaseContactsPage

BaseContactsPage

Constructor Summary

Public Constructor
public

constructor(args: args)

Member Summary

Public Members
public

Method Summary

Public Methods
public

Finds if the contact has a chat option on the contact container

public

contactNamed(name: *): *

public
public
public
public
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

Gets the contacts list items on page

public
public

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
public
public
public

Click on the filter dropdown to show it

Public Constructors

public constructor(args: args) source

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
name String

of Contact

Return:

Boolean

True if Chat element found and False if Not

public contactNamed(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public contactPresence(): * source

Return:

*

public contactsListContainer(): * source

Return:

*

public contactsListItems(): * source

Return:

*

public dropdownItems(): * source

Return:

*

public async findContact(name: String): Element source

Internal method to find contact element

Params:

NameTypeAttributeDescription
name String

Name of contact

Return:

Element

Element of contact

public async getNamesInList(namesList: Array): Array source

Get names in current list

Params:

NameTypeAttributeDescription
namesList Array

Array of names

Return:

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

Return:

Array

Array of the divs of the contacts list

TODO:

  • Optimize this. It's slow.

public noContactsMessage(): * source

Return:

*

public async scrollContactsListContainerToTop() source

Scrolls contactListContainer to the top

public async scrollToContact(contact: String, additionalOffset: Integer) source

Scrolls to contact.

Params:

NameTypeAttributeDescription
contact String

Contact element

additionalOffset Integer

Amount of additional pixels to scroll

public async selectContact(name: String) source

Click on contact with provided name

Params:

NameTypeAttributeDescription
name String

Name of contact to select

public showAllButton(): * source

Return:

*

public showAvailableButton(): * source

Return:

*

public showDropdown(): * source

Return:

*

public async showFilterOptions() source

Click on the filter dropdown to show it