Im trying to get an e2e test to work on the next example:
HTML:
<div ng-if="selectedItem">
<span class-"xxx">This is line 1</span>
<span class="xxx yyy">This is line 2</span>
</div>
Protractor:
..
element.findByCss('div[ng-if="selectedItem"] span[class!="yyy"]');
..
Gives the following error:
Failed: invalid element state: Failed to execute 'querySelectorAll' on 'Document': 'div[ng-if="selectedItem"] span[class!="yyy"]' is not a valid selector.
The selector works with jQuery though.. I know its not the same. But i cant seem to find how to exclude a class with protractor