UNPKG

systelab-components-wdio-test

Version:
19 lines (18 loc) 533 B
import { Widget } from './widget.js'; import { Browser } from "../wdio/index.js"; export class Datepicker extends Widget { async isPresent() { return this.getInputElement().isDisplayed(); } async getValue() { return this.getInputElement().getAttribute('value'); } async setValue(value) { await this.getInputElement().clear(); await this.getInputElement().write(value); await Browser.pressTab(); } getInputElement() { return this.byTagName('input'); } }