I have a setting in my angular based website that turns a dropdown on and off. If it is off, then it does not show on the main page.
With Protractor, I need to check to
Another option that worked a bit better for me, and uses protractor 'way' of doing things http://angular.github.io/protractor/#/api?view=ElementArrayFinder.prototype.all
element.all(by.css('.k-loading-image')).then(function(items) {
expect(items.length).toBe(0);
});
(I wanted to check that a loading indicator had disappeared)