I have following rendered html
<div class="footer text-center">
<p>By signing up, you agree to abc's <b>Terms of Service</b>, <b>Cookie Policy</b>, <b>Privacy Policy and Content Policies.</b></p>
</div>
I am trying following to validate text is appearing as expected. But getAttribute('value') returns Null and hence test failing.
element(by.tagName('p')).getAttribute('value').then(function (text) {
expect(text).toBe("By signing up, you agree to abc's Terms of Service, Cookie Policy, Privacy Policy and Content Policies.");
});