2017-06-03 09:27:29 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
let Page = require('./page');
|
|
|
|
let pageObject = new Page();
|
|
|
|
|
|
|
|
class LandingPage extends Page {
|
|
|
|
open() {
|
|
|
|
super.open('demo/demoHTML5.jsp');
|
|
|
|
}
|
|
|
|
|
|
|
|
get title() {
|
|
|
|
return 'Join Meeting via HTML5 Client';
|
|
|
|
}
|
|
|
|
|
|
|
|
get url() {
|
|
|
|
return 'http://localhost:8080/demo/demoHTML5.jsp';
|
|
|
|
}
|
|
|
|
|
|
|
|
get username() {
|
|
|
|
return $('input[name=username]');
|
|
|
|
}
|
|
|
|
|
|
|
|
get joinButton() {
|
|
|
|
return $('input[type=submit]');
|
|
|
|
}
|
|
|
|
|
|
|
|
joinWithButtonClick() {
|
|
|
|
this.joinButton.click();
|
|
|
|
}
|
|
|
|
|
|
|
|
joinWithEnterKey() {
|
|
|
|
pageObject.pressEnter();
|
|
|
|
}
|
|
|
|
|
|
|
|
get loadedHomePage() {
|
|
|
|
return $('#app');
|
|
|
|
}
|
|
|
|
}
|
2017-05-14 11:52:43 +08:00
|
|
|
|
2017-05-30 09:45:30 +08:00
|
|
|
// To use in the future tests that will require login
|
2017-06-03 08:25:39 +08:00
|
|
|
browser.addCommand('loginToClient', function (page) {
|
|
|
|
page.open();
|
|
|
|
page.username.waitForExist();
|
|
|
|
page.username.setValue('Maxim');
|
|
|
|
page.joinWithButtonClick();
|
2017-05-30 09:45:30 +08:00
|
|
|
});
|
|
|
|
|
2017-06-03 09:27:29 +08:00
|
|
|
module.exports = new LandingPage();
|
2017-05-14 11:52:43 +08:00
|
|
|
|