I would like to do something like this but it doesn't work because isPresent returns a promise and not a boolean...
this.isVisible = function(){
return browser.isElementPresent(_this.username) &&
browser.isElementPresent(_this.password) &&
browser.isElementPresent(_this.submit)
}
I also tried
this.isVisible = function(){
return _this.username.isPresent() &&
_this.password.isPresent() &&
_this.submit.isPresent()
}
Is there a way to handle this? Perhaps use all and then combine it with a single boolean promise or something?