UNPKG

cucumber-protractor

Version:

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

7 lines (6 loc) 285 B
module.exports = function checkAttribute(locatorKey, expectedAttribute, expectedValue) { return this.getCurrentPage() .getElementWhenInDOM(locatorKey) .then((element) => element.getAttribute(expectedAttribute)) .then((value) => expect(value).to.equal(expectedValue)); };