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



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

i'm new in writing scenarios e2e testing in angularjs. want write scenario test login. have form has email field follow:

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

and in scenario i'm having having next line tries pass email address input field:

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

but unfortunately i'me getting next error after running test: 6ms input 'form.email' come in 'blabla@blabla.com' selector [ng\:model="form.email"] did not match elements. suggestion?

check create sure have:

browser().navigateto('/');

without navigating first angular not have reference dom.

you can utilize :

pause();

to see browser displaying @ given time when running e2e test.

testing angularjs jasmine

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -