UNPKG

cucumber-protractor

Version:

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

8 lines (6 loc) 271 B
module.exports = function checkIsSelected(locatorKey, isNotSelected) { const el = this.getCurrentPage().getElement(locatorKey); return isNotSelected ? expect(el.isSelected()).to.eventually.equal(false) : expect(el.isSelected()).to.eventually.equal(true); };