jeudi 16 août 2018

Angular unit test get element by variable declaration

my question is i've a inputs and variable declarations. How can i get this elements by varaible declarations. example: html:

<input #in type="text" ....>

test query:

fixture.debugElement.query(By.css('#in')).nativeElement;

its does'nt work. Thanks!

Aucun commentaire:

Enregistrer un commentaire