@o3r/testing
Version:
The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.
21 lines • 817 B
TypeScript
import { CheckboxElementProfile } from '../../elements';
import { O3rElement, PlaywrightSourceElement } from '../element';
/**
* Implementation dedicated to Playwright.
*/
export declare class O3rCheckboxElement extends O3rElement implements CheckboxElementProfile {
constructor(sourceElement: PlaywrightSourceElement | O3rElement);
private getInputElement;
private getLabelElement;
/**
* Check the checkbox element
* @param value If specified, determine the value of the checkbox button
* If the element contains a label, the label will be used to (un)check the checkbox.
*/
check(value?: boolean): Promise<void>;
/** @inheritDoc */
uncheck(): Promise<void>;
/** @inheritDoc */
isChecked(): Promise<boolean>;
}
//# sourceMappingURL=checkbox-element.d.ts.map