I enter the value with this code:
var FirstName = element(by.name('firstName'));
FirstName.clear().sendKeys('RM');
The code updates the profile of the user correctly.
Now I am trying to read that value or expecting that value in Protractor Visual Studio Code with this code:
expect(element(by.name('firstName')).getText()).toEqual('RM');
I have also tried this:
expect(FirstName.getAttribute('firstName')).toEqual('RM');
but it returns a null value
How do I read the value of the First Name field?