vendredi 8 décembre 2017

how to check, if the input field contains any value in protractor tests

I would like to check if the input field contains any string or not. From the below code snippet, how can I check ? it actually contains Asset Management.

<input _ngcontent-c6="" class="col-md-3 mat-input-element mat-form-field-autofill-control ng-pristine ng-valid ng-touched" id="title" matinput="" placeholder="Object Title" type="text" ng-reflect-model="Asset Management" ng-reflect-id="title" ng-reflect-placeholder="Object Title" ng-reflect-type="text" aria-describedby="mat-hint-2" aria-invalid="false">

Aucun commentaire:

Enregistrer un commentaire