We can retrieve text content using the "getAttributes" action.
Use it like so:
const attributes = await element(by.id('ElementId')).getAttributes(); console.log("text : ", attributes.text);