UNPKG

@vibe/testkit

Version:
25 lines 935 B
import { Locator, Page } from "@playwright/test"; import { Button } from "./Button"; import { Menu } from "./Menu"; /** * Class representing an icon button that extends the Button class. */ export declare class IconButton extends Button { icon: Button; menu: Menu | undefined; /** * Create an IconButton. * @param {Page} page - The Playwright page object. * @param {Locator} locator - The locator for the IconButton element. * @param {string} elementReportName - The name for reporting purposes. * @param menuType - The type of menu associated with the button. */ constructor(page: Page, locator: Locator, elementReportName: string, menuType?: Menu); /** * Select an item from the icon button's menu. * @param {string} item - The item to select. * @returns {Promise<void>} */ selectItem(item: string): Promise<void>; } //# sourceMappingURL=IconButton.d.ts.map