import CallController from 'automation.client.ui/src/controllers/web/call.controller.js'
CallController
Extends:
Controller for making and handling calls
Constructor Summary
Public Constructor | ||
public |
constructor(args: args) |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
headerPanel: * |
|
public |
homePage: * |
|
public |
inCallModal: * |
|
public |
|
|
public |
joinModal: * |
|
public |
|
|
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
async addCall() Waits for incoming call while in a call, then will click add |
|
public |
async addParticipantByExtension(extension: String) Views add participant panel and dials to a participant by extension |
|
public |
async analyzeRtc(ms: String): Object Starts analyzing RTC data during a call for client for ms provided. |
|
public |
async answerCall(wait: Boolean) Answer an incoming call |
|
public |
async callExtensionWithVideo(extension: String, wait: Boolean) Starts a call from the Welcome page by entering an extension |
|
public |
async callExtensionWithVideoAndCancel(extension: String) Will call extension and immediately cancel the call |
|
public |
async calleeIsBusy(): Boolean Determines whether the callee is 'Busy' when the caller calls |
|
public |
async calleeIsUnreachable(): Boolean Determines whether the callee is 'Unreachable' when the caller calls |
|
public |
async endCall() End the current call |
|
public |
async getCallDetails(): Object Get details from call details panel |
|
public |
async getCallParticipantsInfo(): Object Views incall participants list and returns the info |
|
public |
async getPresentationTooltipText(): String Get text of presentation button tooltip |
|
public |
async getRecordingTooltipText(): String Returns recording button tool tip text |
|
public |
async hasGoodRtcStats(): Boolean Determines if RTC stats are good |
|
public |
async ignoreCall() Waits for incoming call, then will click ignore |
|
public |
async isCallGood(): Boolean Determines if the call is considered good |
|
public |
async isCallRecorded(): Boolean Returns the call recording state |
|
public |
async isConnected(): Boolean Checks to see if we have a peer connection. |
|
public |
async isPrimaryVideoBlank(): Boolean Determines if the primary video is blank. |
|
public |
async isReceivingPresentation(): Boolean Checks if receiving presentation |
|
public |
async isSendingPresentation(): Boolean Checks if sending presentation |
|
public |
Join call by visiting the /call URL |
|
public |
async joinCallAndCancel(extension: String) Join call by visiting the /call URL, and cancel call |
|
public |
async setSkipAlertOnClose() When closing browser or navigating away, we are presented with an alert. |
|
public |
async startPresentation() Clicks the start presentation button. |
|
public |
async startRecording(wait: Boolean) Clicks on start recording button from call controls |
|
public |
async stopPresentation() Click the stop presentation button |
|
public |
async stopRecording(wait: Boolean) Clicks on stop recording button from call controle |
|
public |
async waitForIncomingCall() Waits for incoming call modal to be displayed |
|
public |
async waitUntilCallConnected() Waits up to 30 seconds to become connected to a call |
Public Constructors
public constructor(args: args) source
Params:
Name | Type | Attribute | Description |
args | args | Args from client |
Public Members
public addParticipantPanel: * source
public callDetailsPanel: * source
public headerPanel: * source
public homePage: * source
public inCallModal: * source
public incomingCallPage: * source
public joinModal: * source
public participantListPanel: * source
public startCallModal: * source
public startingCallModal: * source
Public Methods
public async addParticipantByExtension(extension: String) source
Views add participant panel and dials to a participant by extension
Params:
Name | Type | Attribute | Description |
extension | String | extension of the participant |
public async analyzeRtc(ms: String): Object source
Starts analyzing RTC data during a call for client for ms provided.
Params:
Name | Type | Attribute | Description |
ms | String | Amount of milliseconds to analyze call |
TODO:
- Determine what RTC data is relevant to present here.
public async answerCall(wait: Boolean) source
Answer an incoming call
Params:
Name | Type | Attribute | Description |
wait | Boolean | Wait for call to be connected before continuing |
public async callExtensionWithVideo(extension: String, wait: Boolean) source
Starts a call from the Welcome page by entering an extension
public async callExtensionWithVideoAndCancel(extension: String) source
Will call extension and immediately cancel the call
Params:
Name | Type | Attribute | Description |
extension | String | Extension to call |
public async calleeIsBusy(): Boolean source
Determines whether the callee is 'Busy' when the caller calls
public async calleeIsUnreachable(): Boolean source
Determines whether the callee is 'Unreachable' when the caller calls
public async getCallParticipantsInfo(): Object source
Views incall participants list and returns the info
public async hasGoodRtcStats(): Boolean source
Determines if RTC stats are good
TODO:
- Determine what good stats are
public async isPrimaryVideoBlank(): Boolean source
Determines if the primary video is blank. This takes a screen shot of the primary video element at the time this is called.
public async joinCallAndCancel(extension: String) source
Join call by visiting the /call URL, and cancel call
Params:
Name | Type | Attribute | Description |
extension | String | Extension to call |
public async setSkipAlertOnClose() source
When closing browser or navigating away, we are presented with an alert. This run js on the page that tells the app to skip this alert. Hard coded to 300,000ms (5 minutes) Copy/Pasted from login controller
TODO:
- Abstract this out into something else
public async startPresentation() source
Clicks the start presentation button. Auto-selects "Entire Screen" based on our capabilities
public async startRecording(wait: Boolean) source
Clicks on start recording button from call controls
Params:
Name | Type | Attribute | Description |
wait | Boolean |
|
If true waits for the recording to be started |