How can I compare a String with a List of ng-repeat
:
this.TenantList = element.all(by.repeater("tenant in tenantList"));
TenantList.getAttribute('aria-label').then(function(list) {
//label contains 10 items and I want to see if this list contains 'Test'
expect(list).toMatch('Test');
});
Aucun commentaire:
Enregistrer un commentaire