You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChatPanel.ts 532B

12345678910111213141516171819202122
  1. import BasePageObject from './BasePageObject';
  2. /**
  3. * Chat panel elements.
  4. */
  5. export default class ChatPanel extends BasePageObject {
  6. /**
  7. * Is chat panel open.
  8. */
  9. isOpen() {
  10. return this.participant.driver.$('#sideToolbarContainer').isExisting();
  11. }
  12. /**
  13. * Presses the "chat" keyboard shortcut which opens or closes the chat
  14. * panel.
  15. */
  16. async pressShortcut() {
  17. await this.participant.driver.$('body').click();
  18. await this.participant.driver.keys([ 'c' ]);
  19. }
  20. }