, key: string): void;
private _parent;
private _session;
private _context;
private _task;
constructor(parentOrSession: Session | Command | null, initialiser?: (this: Command, setContext: SetContextMethod, value: T) => T | PromiseLike, errback?: (this: Command, setContext: SetContextMethod, error: any) => T | PromiseLike);
get parent(): Command;
get session(): Session;
get context(): Context;
get promise(): CancellablePromise;
sleep(ms: number): Command;
end(numCommandsToPop?: number): Command;
then(callback?: ((this: Command, value: T, setContext: SetContextMethod) => U | PromiseLike) | null | undefined, errback?: ((this: Command, error: any) => R | PromiseLike) | null | undefined): Command;
catch(errback: (this: Command, reason: any) => R | PromiseLike): Command;
finally(callback: () => void): this;
cancel(): this;
find(strategy: Strategy, value: string): Command;
findAll(strategy: Strategy, value: string): Command;
findDisplayed(strategy: Strategy, value: string): Command;
private _callFindElementMethod;
private _callElementMethod;
private _callSessionMethod;
getTimeout(type: string): Command;
setTimeout(type: string, ms: number): Command;
getCurrentWindowHandle(): Command;
getAllWindowHandles(): Command;
getCurrentUrl(): Command;
get(url: string): Command;
goForward(): Command;
goBack(): Command;
refresh(): Command;
execute(script: Function | string, args?: any[]): Command;
executeAsync(script: Function | string, args?: any[]): Command;
takeScreenshot(): Command;
getAvailableImeEngines(): Command;
getActiveImeEngine(): Command;
isImeActivated(): Command;
deactivateIme(): Command;
activateIme(engine: string): Command;
switchToFrame(id: string | number | Element | null): Command;
switchToWindow(handle: string): Command;
switchToParentFrame(): Command;
closeCurrentWindow(): Command;
setWindowSize(width: number, height: number): Command;
setWindowSize(windowHandle: string, width: number, height: number): Command;
getWindowSize(_windowHandle?: string): Command<{
width: number;
height: number;
}, P, StringResult>;
setWindowPosition(x: number, y: number): Command;
setWindowPosition(windowHandle: string, x: number, y: number): Command;
getWindowPosition(windowHandle?: string): Command<{
x: number;
y: number;
}, P, StringResult>;
maximizeWindow(windowHandle?: string): Command;
getCookies(): Command;
setCookie(cookie: WebDriverCookie): Command;
clearCookies(): Command;
deleteCookie(name: string): Command;
getPageSource(): Command;
getPageTitle(): Command;
getActiveElement(): Command;
pressKeys(keys: string | string[]): Command;
getOrientation(): Command<"portrait" | "landscape", P, StringResult>;
setOrientation(orientation: 'portrait' | 'landscape'): Command;
getAlertText(): Command;
typeInPrompt(text: string | string[]): Command;
acceptAlert(): Command;
dismissAlert(): Command;
moveMouseTo(element?: Element, xOffset?: number, yOffset?: number): Command;
moveMouseTo(xOffset?: number, yOffset?: number): Command;
clickMouseButton(button?: number): Command;
pressMouseButton(button?: number): Command;
releaseMouseButton(button?: number): Command;
doubleClick(): Command;
tap(element: Element): Command;
pressFinger(x: number, y: number): Command;
releaseFinger(x: number, y: number): Command;
moveFinger(x: number, y: number): Command;
touchScroll(xOffset: number, yOffset: number): Command;
touchScroll(element?: Element, xOffset?: number, yOffset?: number): Command;
doubleTap(element?: Element): Command;
longTap(element?: Element): Command;
flickFinger(element: Element, xOffset: number, yOffset: number, speed?: number): Command;
flickFinger(xOffset: number, yOffset: number, speed?: number): Command;
getGeolocation(): Command;
setGeolocation(location: Geolocation): Command;
getLogsFor(type: string): Command;
getAvailableLogTypes(): Command;
getApplicationCacheStatus(): Command;
quit(): Command;
waitForDeleted(using: Strategy, value: string): Command;
getExecuteAsyncTimeout(): Command;
setExecuteAsyncTimeout(ms: number): Command;
getFindTimeout(): Command;
setFindTimeout(ms: number): Command;
getPageLoadTimeout(): Command;
setPageLoadTimeout(ms: number): Command;
click(): Command;
submit(): Command;
getVisibleText(): Command;
type(value: string | string[]): Command;
getTagName(): Command;
clearValue(): Command;
isSelected(): Command;
isEnabled(): Command;
getSpecAttribute(name: string): Command;
getAttribute(name: string): Command;
getProperty(name: string): Command;
equals(other: Element): Command;
isDisplayed(): Command;
getPosition(): Command<{
x: number;
y: number;
}, P, StringResult>;
getSize(): Command<{
width: number;
height: number;
}, P, StringResult>;
getComputedStyle(propertyName: string): Command;
}
export interface SetContextMethod {
(context: Element | Element[]): void;
}
export interface Context extends Array {
isSingle?: boolean;
depth?: number;
}