Home Manual Reference Source
public class | source

ActivityController

Extends:

* → ActivityController

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

Deletes all recent calls from the list of recents in the activity panel

public

Deletes most recent call from the list of recents in the activity panel.

public

Gets information for the most recent call in the recents list

public

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:

NameTypeAttributeDescription
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'
}

public async recentsIsEmpty(): Boolean source

Determines if the recents list in the activity panel is empty via the presence of the default empty message.

Return:

Boolean

true if recents is empty, false if not