/** * Interface to describe the ElementProfile that are queried inside a fixture. * As for ComponentFixture, this abstracts the testing framework that is used by choosing the right * implementation at runtime. */ export interface ElementProfile { /** * Click on the element. Simple click with left button. */ click(): Promise; /** * Returns a promise that resolves with the value of the attribute given in parameter. */ getAttribute(attributeName: string): Promise; /** * Returns a promise that resolves with the text of the element or undefined. */ getText(): Promise; /** * Get the text of an element, remove the multiple whitespaces and linebreaks * Returns a promise that resolves with the formatted text or undefined. */ getPlainText(): Promise; /** * Returns a promise that resolves with the inner html of the element or undefined. */ getInnerHTML(): Promise; /** * Put the cusrsor on the element. */ mouseOver(): Promise; /** * Returns a promise that resolves with the current value of an input or undefined. */ getValue(): Promise; /** * Set the value in an input. */ setValue(input: string): Promise; /** * Clears the value in the input */ clearValue(): Promise; /** * Check if an element is visible ( display !none and visibility !hidden) */ isVisible(): Promise; } /** * Constructor of a O3rElement */ export type O3rElementConstructor = new (sourceElement: any) => T; /** * Mock for ElementProfile class. * This class is used for fixture compilation purpose. */ export declare class O3rElement implements ElementProfile { constructor(_sourceElement: any); getInnerHTML(): Promise; /** @inheritdoc */ getText(): Promise; /** @inheritdoc */ getPlainText(): Promise; /** @inheritdoc */ click(): Promise; /** @inheritdoc */ getAttribute(_attributeName: string): Promise; /** @inheritdoc */ mouseOver(): Promise; /** @inheritdoc */ getValue(): Promise; /** @inheritdoc */ setValue(_input: string): Promise; /** @inheritdoc */ clearValue(): Promise; /** @inheritdoc */ isVisible(): Promise; } //# sourceMappingURL=element.d.ts.map