cybernaut
Version:
Reliable, zero configuration end-to-end testing in BDD-style.
20 lines (19 loc) • 678 B
TypeScript
import { Accessor } from './accessor';
import { Action } from './action';
export declare class Element {
protected readonly selector: string;
constructor(selector: string);
readonly tagName: Accessor<string>;
readonly text: Accessor<string>;
readonly visibility: Accessor<boolean>;
readonly x: Accessor<number>;
readonly y: Accessor<number>;
readonly width: Accessor<number>;
readonly height: Accessor<number>;
cssValue(cssName: string): Accessor<string>;
propertyValue(propertyName: string): Accessor<string | null>;
clearValue(): Action;
click(): Action;
sendKeys(...keys: string[]): Action;
submitForm(): Action;
}