systelab-components-wdio-test
Version:
Widgets to be use in the E2E Tests based in WDIO
14 lines (13 loc) • 380 B
JavaScript
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();
}
}