@assert-equals/dappdriver
Version:
DappDriver is an e2e testing framework designed for testing decentralized applications (dApps) using MetaMask, Rainbow or Zerion
45 lines (44 loc) • 1.25 kB
TypeScript
import { ICheckBox } from '../interface/controls/check-box';
import { IHTMLElement } from '../interface/controls/html-element';
import { HTMLElement } from './html-element';
/**
*
*
* @export
* @class CheckBox
* @extends {HTMLElement}
* @implements {ICheckBox}
*/
export declare class CheckBox extends HTMLElement implements ICheckBox {
/**
* Creates an instance of CheckBox.
* @param {string} cssLocator
* @memberof CheckBox
*/
constructor(cssLocator: string);
/**
*
*
* @protected
* @param {(keyof IHTMLElement | keyof ICheckBox)} methodName
* @param {Array<any>} [args=[]]
* @return {*} {Promise<any>}
* @memberof CheckBox
*/
protected callIfMethodExists(methodName: keyof IHTMLElement | keyof ICheckBox, args?: Array<any>): Promise<any>;
/**
*
* Schedules a command to check or uncheck this element
* @param {boolean} value
* @return {*} {Promise<void>}
* @memberof CheckBox
*/
setValue(value: boolean): Promise<void>;
/**
*
* Schedules a command to query whether this element is currently checked
* @return {*} {Promise<boolean>}
* @memberof CheckBox
*/
isSelected(): Promise<boolean>;
}