UNPKG

@vibe/testkit

Version:
21 lines 740 B
import { Locator, Page } from "@playwright/test"; import { BaseElement } from "./BaseElement"; /** * Class representing a Link element. * Extends the BaseElement class. */ export declare class Link extends BaseElement { /** * Create a Link element. * @param {Page} page - The Playwright page object. * @param {Locator} locator - The locator for the Link element. * @param {string} elementReportName - The name for reporting purposes. */ constructor(page: Page, locator: Locator, elementReportName: string); /** * Get the href attribute of the link. * @returns {Promise<string>} The href attribute of the link. */ getLinkHref(): Promise<string>; } //# sourceMappingURL=Link.d.ts.map