UNPKG

@vibe/testkit

Version:
30 lines 1.06 kB
import { Page, Locator } from "@playwright/test"; import { BaseElement } from "./BaseElement"; /** * Class representing a Checkbox element. * Extends the BaseElement class. */ export declare class Checkbox extends BaseElement { page: Page; locator: Locator; elementReportName: string; /** * Create a Checkbox. * @param {Page} page - The Playwright page object. * @param {Locator} locator - The locator for the Checkbox element. * @param {string} elementReportName - The name for reporting purposes. */ constructor(page: Page, locator: Locator, elementReportName: string); /** * Set the checked state of the checkbox. * @param {boolean} isToCheck - True to check the checkbox, false to uncheck. * @returns {Promise<void>} */ setChecked(isToCheck: boolean): Promise<void>; /** * Check if the checkbox is checked. * @returns {Promise<boolean>} True if the checkbox is checked, false otherwise. */ isChecked(): Promise<boolean>; } //# sourceMappingURL=Checkbox.d.ts.map