@o3r/testing
Version:
The module provides testing (e2e, unit test) utilities to help you build your own E2E pipeline integrating visual testing.
43 lines • 1.45 kB
TypeScript
import { DebugElement } from '@angular/core';
import { ElementProfile } from '../element';
export { ElementProfile } from '../element';
/**
* Implementation dedicated to angular / TestBed.
*/
export declare class O3rElement implements ElementProfile {
/** Angular element */
sourceElement: DebugElement;
constructor(sourceElement: DebugElement | O3rElement);
/**
* Returns the text content of the DOM node.
* Prioritizes .innerText, but fallbacks on .textContent in case the former is undefined in order
* to support JSDOM.
* @protected
*/
protected get text(): string | undefined;
/** @inheritdoc */
getText(): Promise<string | undefined>;
/** @inheritdoc */
getPlainText(): Promise<string | undefined>;
/** @inheritdoc */
getInnerHTML(): Promise<string | undefined>;
/** @inheritdoc */
click(): Promise<void>;
/** @inheritdoc */
isVisible(): Promise<boolean>;
/** @inheritdoc */
getAttribute(attributeName: string): Promise<any>;
/** @inheritdoc */
mouseOver(): Promise<void>;
/** @inheritdoc */
getValue(): Promise<any>;
/** @inheritdoc */
setValue(input: string): Promise<void>;
/** @inheritdoc */
clearValue(): Promise<void>;
}
/**
* Constructor of a O3rElement
*/
export type O3rElementConstructor<T extends ElementProfile> = new (sourceElement: DebugElement | O3rElement) => T;
//# sourceMappingURL=element.d.ts.map