Reputation: 276
I am trying to write simple e2e test, using angular, karma and protractor. I figure out that I can get the text from some element using getText()
but I can't find the right way to get the value of input. The sample of my code below:
this.page = $('.content-area');
this.userEmail = this.page.element(by.css('.email > input'));
this.expectHomeEmail = function(text) {
expect(this.userEmail.isDisplayed()).toBeTrue();
expect(this.userEmail.getValue()).toBe(text);
};
The error that I get looks like:
Thanks a lot!
Upvotes: 3
Views: 2879