UNPKG

systelab-components-wdio-test

Version:
18 lines (17 loc) 527 B
"use strict"; 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;