@vibe/testkit
Version:
Vibe e2e testing toolkit
45 lines • 1.43 kB
TypeScript
import { Page, Locator } from "@playwright/test";
import { BaseElement } from "./BaseElement";
import { Menu } from "./Menu";
/**
* Class representing a Search element.
* Extends the BaseElement class.
*/
export declare class Search extends BaseElement {
private input;
private clearSearchIconButton;
private filterButton;
/**
* Create a Search element.
* @param {Page} page - The Playwright page object.
* @param {Locator} locator - The locator for the Search element.
* @param {string} elementReportName - The name for reporting purposes.
*/
constructor(page: Page, locator: Locator, elementReportName: string, filterMenuType?: Menu);
/**
* Set specified text in search field.
* @param {string} text - Text to be filled in the search field.
* @returns {Promise<void>}
*/
setText(text: string): Promise<void>;
/**
* Clear the text in the search field.
*/
clear(): Promise<void>;
/**
* Get the text from the search field.
* @returns {Promise<string>} The text from the search field.
*/
getText(): Promise<string>;
/**
* Check if the search field is empty.
* @returns {Promise<string>}
*/
isEmpty(): Promise<boolean>;
/**
* Click the clear search button.
* @returns {Promise<void>}
*/
clickClearSearchButton(): Promise<void>;
}
//# sourceMappingURL=Search.d.ts.map