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