@vibe/testkit
Version:
Vibe e2e testing toolkit
41 lines • 1.31 kB
TypeScript
import { Page, Locator } from "@playwright/test";
import { BaseElement } from "./BaseElement";
/**
* Class representing a TextField element.
* Extends the BaseElement class.
*/
export declare class TextField extends BaseElement {
/**
* Create a TextField element.
* @param {Page} page - The Playwright page object.
* @param {Locator} locator - The locator for the TextField element.
* @param {string} elementReportName - The name for reporting purposes.
*/
constructor(page: Page, locator: Locator, elementReportName: string);
/**
* Set specified text in input element.
* @param {string} text - Text to be filled in the input.
* @returns {Promise<void>}
*/
setText(text: string): Promise<void>;
/**
* Clear the text in the input element.
*/
clearText(): Promise<void>;
/**
* Get the text from the input element.
* @returns {Promise<string>} The text from the input element.
*/
getText(): Promise<string>;
/**
* Get the value of the input element.
* @returns {Promise<string>}
*/
isEmpty(): Promise<boolean>;
/**
* Exit the edit mode by pressing the Escape key.
* @returns {Promise<void>}
*/
exitEditMode(): Promise<void>;
}
//# sourceMappingURL=TextField.d.ts.map