UNPKG

@vibe/testkit

Version:
28 lines 1.01 kB
import { Page, Locator } from "@playwright/test"; import { BaseElement } from "./BaseElement"; import { Button } from "./Button"; /** * Class representing a group of buttons. * Extends the BaseElement class. */ export declare class ButtonGroup extends BaseElement { constructor(page: Page, locator: Locator, elementReportName: string); /** * Get all buttons in the button group. * @returns {Promise<Button[]>} An array of Button objects. */ getAllButtons(): Promise<Button[]>; /** * Get a button by its name. * @param {string} buttonName - The name of the button to retrieve. * @returns {Button} The button with the specified name. */ getButtonByName(buttonName: string): Promise<Button | undefined>; /** * Click a button by its name. * @param {string} buttonName - The name of the button to click. * @returns {Promise<void>} */ clickButton(buttonName: string): Promise<void>; } //# sourceMappingURL=ButtonGroup.d.ts.map