I run into this issue whenever I try to wait until an DOM element is removed from the current DOM tree on the web page that my protractor test is testing. I already got a hang o
not sure where you got protractor.until
from as that's not part of the core library. This is how you would do it with protractor:
var el = element(by.css('.your-css-class'));
return browser.wait(function() {
return el.isPresent().then(function(present) {
return !present;
})
});
Once feat(expectedConditions) is in (probably protractor 1.7), you can do:
var EC = protractor.ExpectedConditions;
var el = element(by.css('.your-css-class'));
return browser.wait(EC.not(EC.presenceOf(el)));