cybernaut
Version:
Reliable, automated web UI testing in BDD-style.
30 lines (29 loc) • 1.21 kB
TypeScript
import { SeleniumAccessor } from './accessor';
import { SeleniumAction } from './action';
export interface Locator {
readonly index: number;
readonly name: string;
readonly selector: string;
}
export declare class SeleniumElement {
private readonly _locators;
private readonly _name;
constructor(locators: Locator[]);
attributeValue(attributeName: string): SeleniumAccessor<string | null>;
clearValue(): SeleniumAction;
click(): SeleniumAction;
cssValue(cssName: string): SeleniumAccessor<string>;
defineDescendantElement(name: string, selector: string, index?: number): SeleniumElement;
descendantElementCount(selector: string): SeleniumAccessor<number>;
readonly existence: SeleniumAccessor<boolean>;
readonly height: SeleniumAccessor<number>;
sendKeys(...keys: string[]): SeleniumAction;
readonly tagName: SeleniumAccessor<string>;
readonly text: SeleniumAccessor<string>;
readonly visibility: SeleniumAccessor<boolean>;
readonly width: SeleniumAccessor<number>;
readonly xPosition: SeleniumAccessor<number>;
readonly yPosition: SeleniumAccessor<number>;
private _findElement(driver);
private _locateElement(driver);
}