UNPKG

cucumber-protractor

Version:

POM CukeTractor - Bootstrap your cucumber tests with cucumber, protractor and a structured way of creating page objects and component objects

9 lines (8 loc) 306 B
module.exports = function checkContainsAnyText(locatorKey, doesNotContain) { return this.getCurrentPage().getElementWhenInDOM(locatorKey) .then((el) => ( doesNotContain ? expect(el.getText()).to.eventually.equal('') : expect(el.getText()).to.not.eventually.equal('') )); };