@vibe/testkit
Version:
Vibe e2e testing toolkit
27 lines • 962 B
TypeScript
import { Page, Locator } from "@playwright/test";
import { BaseElement } from "./BaseElement";
/**
* Class representing a ColorPicker element.
* Extends the BaseElement class.
*/
export declare class ColorPicker extends BaseElement {
/**
* Create a ColorPicker.
* @param {Page} page - The Playwright page object.
* @param {Locator} locator - The locator for the ColorPicker element.
* @param {string} elementReportName - The name for reporting purposes.
*/
constructor(page: Page, locator: Locator, elementReportName: string);
/**
* Select a color from the color picker.
* @param {string} color - The color to select.
* @returns {Promise<void>}
*/
selectColor(color: string): Promise<void>;
/**
* Get the currently selected color.
* @returns {Promise<string>} The selected color.
*/
getSelectedColor(): Promise<string | undefined>;
}
//# sourceMappingURL=ColorPicker.d.ts.map