My code snippet
getitemsCount:function (css) {
return element(by.deepCss(css));
},
getCount:function(){
return this.getitemsCount('span.summary').getText().then(function (text) {
return text;
})
},
able to print text value to console but not returning . any help is appreciated. thanks in advance