systelab-components-test
Version:
Widgets to be use in the E2E Tests based in Protractor
25 lines (24 loc) • 865 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var widget_1 = require("./widget");
var Button = /** @class */ (function (_super) {
tslib_1.__extends(Button, _super);
function Button() {
return _super !== null && _super.apply(this, arguments) || this;
}
Button.prototype.click = 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.click()];
case 1:
_a.sent();
return [2 /*return*/];
}
});
});
};
return Button;
}(widget_1.Widget));
exports.Button = Button;