UNPKG

systelab-components-wdio-test

Version:
16 lines (15 loc) 363 B
import { Button } from "./button.js"; export class Switch extends Button { async isChecked() { return this.byCSS("input").isSelected(); } async isEnabled() { return this.byCSS("input").isEnabled(); } async isDisabled() { return !(await this.isEnabled()); } async toggle() { return this.click(); } }