Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
'use strict';
var BasePage = require('./baseProtractorPage.js');
var giftengHomePage = function () {
browser.get('http://www.gifteng.com/');
};
giftengHomePage.prototype = Object.create({}, {
loginButton: {
get: function () {
return element(by.css("[ng-if='!user.logged']>[type='button']"))
}
},
email: {
get: function () {
return element(by.css('.container.login.ng-scope #email'))
}
},
password: {
get: function () {
return element(by.css("[placeholder='Password']"))
}
},
signInButton: {
get: function () {
return element(by.css("[type='submit']"))
}
},
InvalidLogInUnSuccess: {
get: function () {
element
this.loginButton.click();
this.email.sendKeys("Test");
}
}
});
module.exports = giftengHomePage
var GiftengHomePage = require('./../../pageObjects/giftengHomePage.js');
describe('gifteng page',function(){
var giftengHomePage;
beforeEach(function(){
giftengHomePage = new GiftengHomePage();
});
it('Should submit the credentials',function(){
giftengHomePage.InvalidLogInUnSuccess;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.