mercredi 4 novembre 2015

Test if each element contains an element with protractor

I want to test if each of the elements .elem1 contain an element .elem2. Tried this but doesn't seem to work as expected:

expect(element.all(by.css('.elem1')).all(by.css('.elem2')).isDisplayed()).toBeTruthy();

Aucun commentaire:

Enregistrer un commentaire