I want to output the text of a div in my protractor test, so far I have:
console.log(ptor.findElement(protractor.By.id(\'view-container\')).getText());
you can try this one:
const textInfo = element(by.id('view-container')); console.log('text: ', textInfo.getText());