I have a list that used to show different kinds of profile status. The status maybe like passed, failed, attention, reading and so on.
In Chrome inspector, I could use Jquery syntax to locate the list.
$('div > div > li > div:has(span.passed, span.failed, span.attention, span.reading)')
and the length is correct. But in Protractor spec, I tried to use the same, It always report error. What I write in the protractor below:
element.all(by.css('div > div > li > div:has(span.passed, span.failed, span.attention, span.reading)')).count().then(function (count) {
console.log(count);
});
Can someone help to answer what is the problem here?
Thanks