Angularjs e2e test - How to use input(name).enter(value)?

I'm so new in writing scenarios for e2e testing in Angularjs. I want to write a scenario to test the login. I have a form which has an email field as follow:

<input type="email" placeholder="Enter your e-mail" name="email" ng-model="form.email" value="" required autofocus > 

And in my scenario I'm having having the following line which tries to pass some email address to that input field:

input('form.email').enter('blabla@blabla.com'); 

But unfortunately I'me getting the following error after running the test:

6ms input 'form.email' enter 'blabla@blabla.com'
Selector [ng\:model="form.email"] did not match any elements.


Any suggestion?

check to make sure that you have:

browser().navigateTo('/');

Without navigating first angular does not have any reference to the DOM.

You can also use :

pause();

To see exactly what the browser is displaying at the given time when running an e2e test.