UNPKG

systelab-components-wdio-test

Version:
14 lines (13 loc) 380 B
import { Widget } from './widget.js'; import { Tab } from '../widgets/tab.js'; export class Tabs extends Widget { async getNumberOfTabs() { return this.allByTagName('systelab-tab').count(); } async getTab(i) { return new Tab(this.allByTagName('li').get(i)); } async selectTab(i) { return this.allByTagName('li').get(i).click(); } }