import GlobalSearchPage from 'automation.client.ui/src/page_objects/web/general/globalSearch.page.js'
GlobalSearchPage
Extends:
GlobalSearchSection
Constructor Summary
Public Constructor | ||
public |
constructor(browser: *) |
Method Summary
Public Methods | ||
public |
contactListElements(): * |
|
public |
emptyMessage(): * |
|
public |
async isContactChattable(name: String): Boolean Checks if chat icon is available within the contact element |
|
public |
async scrollAndfindContact(name: String): PageElement Scroll and find contact in global search dropdown |
|
public |
scrollDivision(): * |
|
public |
async searchContact(name: name): PageElement Search and return contact element if found |
|
public |
searchInput(): * |
|
public |
async selectContact(name: String) Search and select a contact from global search |
|
public |
async typeInSearchField(name: String) Type in global search field |
Public Constructors
public constructor(browser: *) source
Params:
Name | Type | Attribute | Description |
browser | * | Browser from controller |
Public Methods
public async isContactChattable(name: String): Boolean source
Checks if chat icon is available within the contact element
Params:
Name | Type | Attribute | Description |
name | String | name of the contact |
public async scrollAndfindContact(name: String): PageElement source
Scroll and find contact in global search dropdown
Params:
Name | Type | Attribute | Description |
name | String | name of the contact to search for |
Return:
PageElement | contact PageElement |
public async searchContact(name: name): PageElement source
Search and return contact element if found
Params:
Name | Type | Attribute | Description |
name | name | Name of the contact to search for |
Return:
PageElement | contact page element |