I tried the code below but am having trouble locating the "Login" text using Protractor:
<div _ngcontent-c2="" class="align-center">
<img _ngcontent-c2="" alt="Autoprax" class="ap-logo" src="/images/apLogoSmall.svg" style="width: 100%">
<h2 _ngcontent-c2="">Login</h2>
</div>
My attempt to find it using Protractor is as follows:
it('Check Proper Login Page', function() {
var login = element(by.nodeName('[.H2="Login()"]'));
expect(login.getText()).toBe('Login');
Any help would be greatly appreciated