- Главная
- Информатика
- Что такое Page Object
Содержание
Слайд 2Описание Page Objects
var LoginPage = function() {
this.userName = element(by.input('login.userName'));
this.password =
Описание Page Objects
var LoginPage = function() {
this.userName = element(by.input('login.userName'));
this.password =
element(by.input('login.password'));
this.loginButton = element(by.css('Button[ng-click^="login"]'));
this.logoutButton = element(by.css('Button[ng-click^="logout"]'));
this.registerButton = element(by.css('Button[ng-click^="register"]'));
this.greeting = element(by.binding("Welcome, {{currentBrewer.FirstName}}"));
this.gravatarImage = element(by.tagName('img'));
};
module.exports = new LoginPage();
this.loginButton = element(by.css('Button[ng-click^="login"]'));
this.logoutButton = element(by.css('Button[ng-click^="logout"]'));
this.registerButton = element(by.css('Button[ng-click^="register"]'));
this.greeting = element(by.binding("Welcome, {{currentBrewer.FirstName}}"));
this.gravatarImage = element(by.tagName('img'));
};
module.exports = new LoginPage();