systelab-components-wdio-test
Version:
Widgets to be use in the E2E Tests based in WDIO
21 lines (20 loc) • 569 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Link = void 0;
const button_js_1 = require("./button.js");
class Link extends button_js_1.Button {
getHref() {
return this.elem.getAttribute('href');
}
getText() {
return this.elem.getText();
}
async isDisabled() {
const buttonClass = await this.byTagName('button').getAttribute('class');
return buttonClass.includes('disabled');
}
async isEnabled() {
return !(await this.isDisabled());
}
}
exports.Link = Link;