mardi 30 juin 2015

Is there any way to improve the application load time in Protractor?

The initial application load time of an angular application for e2e testing using Protractor is consuming a longer time. Is there any way to improve this?

The page object used for initial login is :

var Login = function() {
var username = element(by.model('login.username'));
var pass = element(by.model('login.userpwd'));
var loginButton = element(by.xpath('//*  @id="logindiv"]/div[3]/div);

this.login = function(name, password) {
     browser.get(config.loginUrl);
     username.sendKeys(name);'
     pass.sendKeys(password);
     loginButton.click();
  };
};
module.exports = Login;`


Aucun commentaire:

Enregistrer un commentaire