bigbluebutton-Github/bigbluebutton-tests/playwright/screenshare/screenshare.js

21 lines
484 B
JavaScript
Raw Normal View History

2021-12-01 01:14:03 +08:00
const Page = require('../core/page');
const { startScreenshare, getScreenShareBreakoutContainer } = require('./util');
2021-12-01 01:14:03 +08:00
const e = require('../core/elements');
class ScreenShare extends Page {
2021-12-01 01:14:03 +08:00
constructor(browser, page) {
super(browser, page);
}
async startSharing() {
await startScreenshare(this);
2021-12-01 01:14:03 +08:00
await this.hasElement(e.isSharingScreen);
}
async testMobileDevice() {
await this.wasRemoved(e.startScreenSharing);
}
}
2021-12-04 01:01:36 +08:00
exports.ScreenShare = ScreenShare;