import Connection from './Connection'; import Element from './Element'; interface IPageOptions { id: number; path: string; query: any; } export default class Page { path: string; query: any; private connection; private id; private elementMap; constructor(connection: Connection, options: IPageOptions); waitFor(condition: string | number | Function): Promise; $(selector: string): Promise; $$(selector: string): Promise; getElementByXpath(selector: string): Promise; getElementsByXpath(selector: string): Promise; xpath(selector: string): Promise; data(path?: string): Promise; setData(data: any): Promise; size(): Promise<{ width: string; height: string; }>; callMethod(method: string, ...args: any[]): Promise; scrollTop(): Promise; private windowProperty; private send; static create(connection: Connection, options: IPageOptions, pageMap: Map): Page | undefined; } export {};