gettext().then(function(text) code example
Example: get text in protractor
page.clientRowName.getText().then(function (text) {
console.log(text);
});
page.clientRowName.getText().then(function (text) {
console.log(text);
});