systelab-components-test
Version:
Widgets to be use in the E2E Tests based in Protractor
23 lines (22 loc) • 839 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var widget_1 = require("./widget");
var Checkbox = /** @class */ (function (_super) {
tslib_1.__extends(Checkbox, _super);
function Checkbox() {
return _super !== null && _super.apply(this, arguments) || this;
}
Checkbox.prototype.isSelected = function () {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.elem.isSelected()];
case 1: return [2 /*return*/, _a.sent()];
}
});
});
};
return Checkbox;
}(widget_1.Widget));
exports.Checkbox = Checkbox;