UNPKG

@vibe/testkit

Version:
30 lines 1.08 kB
import { Page, Locator } from "@playwright/test"; import { BaseElement } from "./BaseElement"; import { Tab } from "./Tab"; /** * Class representing a TabList element. * Extends the BaseElement class. */ export declare class TabList extends BaseElement { /** * Create a TabList. * @param {Page} page - The Playwright page object. * @param {Locator} locator - The locator for the TabList element. * @param {string} elementReportName - The name for reporting purposes. */ constructor(page: Page, locator: Locator, elementReportName: string); getAllTabs(): Promise<Tab[]>; /** * Get a tab by its name. * @param {string} tabName - The name of the button to retrieve. * @returns {Button} The button with the specified name. */ getTabByName(tabName: string): Promise<Tab | undefined>; /** * Select a tab by its name. * @param {string} tabName - The name of the tab to select. * @returns {Promise<void>} */ selectTab(tabName: string): Promise<void>; } //# sourceMappingURL=TabList.d.ts.map