Below is my markup
{{post.title}}
<
-
you have to find a element inside a array as explained here https://github.com/angular/protractor/issues/877
var items = element.all(by.repeater('userGroup in userGroups')).filter(function(item) {
return item.element(by.binding('userGroup.name')).getText().then(function(label) {
return label === 'MyGroupName';
});
});
items.get(0).element(by.css('.buttongochose')).click();
- 热议问题