mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
23 lines
532 B
TypeScript
23 lines
532 B
TypeScript
import BasePageObject from './BasePageObject';
|
|
|
|
/**
|
|
* Chat panel elements.
|
|
*/
|
|
export default class ChatPanel extends BasePageObject {
|
|
/**
|
|
* Is chat panel open.
|
|
*/
|
|
isOpen() {
|
|
return this.participant.driver.$('#sideToolbarContainer').isExisting();
|
|
}
|
|
|
|
/**
|
|
* Presses the "chat" keyboard shortcut which opens or closes the chat
|
|
* panel.
|
|
*/
|
|
async pressShortcut() {
|
|
await this.participant.driver.$('body').click();
|
|
await this.participant.driver.keys([ 'c' ]);
|
|
}
|
|
}
|