systelab-components-wdio-test
Version:
Widgets to be use in the E2E Tests based in WDIO
18 lines (17 loc) • 527 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Tabs = void 0;
const widget_js_1 = require("./widget.js");
const tab_js_1 = require("../widgets/tab.js");
class Tabs extends widget_js_1.Widget {
async getNumberOfTabs() {
return this.allByTagName('systelab-tab').count();
}
async getTab(i) {
return new tab_js_1.Tab(this.allByTagName('li').get(i));
}
async selectTab(i) {
return this.allByTagName('li').get(i).click();
}
}
exports.Tabs = Tabs;