UNPKG

@vibe/testkit

Version:
31 lines 1.02 kB
import { Locator, Page } from "@playwright/test"; import { BaseElement } from "./BaseElement"; /** * Class representing a RadioButton element. * Extends the BaseElement class. */ export declare class RadioButton extends BaseElement { /** * Create a RadioButton element. * @param {Page} page - The Playwright page object. * @param {Locator} locator - The locator for the RadioButton element. * @param {string} elementReportName - The name for reporting purposes. */ constructor(page: Page, locator: Locator, elementReportName: string); /** * Check the radio button. * @returns {Promise<void>} */ select(): Promise<void>; /** * Uncheck the radio button. * @returns {Promise<void>} */ unselect(): Promise<void>; /** * Check if the radio button is checked. * @returns {Promise<boolean>} True if the radio button is checked, false otherwise. */ isChecked(): Promise<boolean>; } //# sourceMappingURL=RadioButton.d.ts.map