import ActivityController from 'automation.client.ui/src/controllers/web/activity.controller.js'
ActivityController
Extends:
Constructor Summary
Public Constructor | ||
public |
constructor(args: args) Adds the browser to the controller from the Base Controller constructor. |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
async deleteAllRecents() Deletes all recent calls from the list of recents in the activity panel |
|
public |
async deleteMostRecent() Deletes most recent call from the list of recents in the activity panel. |
|
public |
async getMostRecentCall(): Object Gets information for the most recent call in the recents list |
|
public |
async recentsIsEmpty(): Boolean Determines if the recents list in the activity panel is empty via the presence of the default empty message. |
Public Constructors
public constructor(args: args) source
Adds the browser to the controller from the Base Controller constructor. This then gets pushed into the various page objects and is ultimately used there to make calls to the actual browser.
Params:
Name | Type | Attribute | Description |
args | args | Args from client |
Public Members
public activityPanel: * source
Public Methods
public async deleteAllRecents() source
Deletes all recent calls from the list of recents in the activity panel
public async deleteMostRecent() source
Deletes most recent call from the list of recents in the activity panel.
public async getMostRecentCall(): Object source
Gets information for the most recent call in the recents list
Return:
Object | Object containing the caller/callee name, the time the call occurred, and the status(incoming, outgoing, or missed) of the call |
Example:
client.activityController.getMostRecentCall()
// Returns...
{
name: 'John Doe',
time: '4m',
status: 'outgoing'
}