I have written my tests in Protractor and I've used an expect statement:
loginPage.email.sendKeys( params.login.email );
expect(loginPage.email.getText()).toEqual( params.login.email );
However, my test is failing because signUpPage.email.getText() is returning an empty string. I couldn't find what function to call in Selenium's documentation for input field to return the correct value?
In my Protractor.conf file:
params: {
login: {
email: '[email protected]',
password: 'blahblah123'
}
Error in Terminal:
Expected '' to equal '[email protected]'.
So I'm trying to match that the input of the email field is the same as the email address I've sent through. Any suggestions how to do that in Selenium?