import type { Locator, Page } from '@playwright/test'; import { ElementProfile } from '../element'; export { ElementProfile } from '../element'; /** * Playwright type for source element * @param element is the DOM element * @param page is the tab in the browser where the test is run */ export type PlaywrightSourceElement = { element: Locator; page: Page; }; /** * Remove text formatting (endline etc.) and return the content. * @param innerText */ export declare function getPlainText(innerText: string): string | undefined; /** * Implementation dedicated to Playwright. */ export declare class O3rElement implements ElementProfile { /** Playwright sourceElement */ sourceElement: PlaywrightSourceElement; constructor(sourceElement: PlaywrightSourceElement | O3rElement); /** @inheritdoc */ getText(): Promise; /** @inheritdoc */ getPlainText(): Promise; /** @inheritdoc */ getInnerHTML(): Promise; /** @inheritdoc */ mouseOver(): Promise; /** @inheritdoc */ getValue(): Promise; /** @inheritdoc */ setValue(input: string): Promise; /** @inheritdoc */ clearValue(): Promise; /** @inheritdoc */ click(): Promise; /** @inheritdoc */ isVisible(): Promise; /** @inheritdoc */ getAttribute(attributeName: string): Promise; } /** * Constructor of a O3rElement */ export type O3rElementConstructor = new (sourceElement: PlaywrightSourceElement | O3rElement) => T; //# sourceMappingURL=element.d.ts.map