UNPKG

systelab-components-wdio-test

Version:
21 lines (20 loc) 569 B
"use strict"; 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;