UNPKG

@assert-equals/dappdriver

Version:

DappDriver is an e2e testing framework designed for testing decentralized applications (dApps) using MetaMask, Rainbow or Zerion

17 lines (16 loc) 566 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PlaywrightCheckBox = void 0; const html_element_1 = require("./html-element"); class PlaywrightCheckBox extends html_element_1.PlaywrightHTMLElement { constructor(cssLocator) { super(cssLocator); } async isSelected() { return await this.webElement.isChecked({ timeout: this.timeout }); } async setValue(value) { await this.webElement.setChecked(value, { timeout: this.timeout }); } } exports.PlaywrightCheckBox = PlaywrightCheckBox;