import { ExecutionContext } from './execution-context'; import { Frame } from './frame'; import { RemoteObject } from './remote-object'; import { BoxModel, CdpNode, CdpRemoteObject, Point, Quad } from './types'; /** * Represents a remote reference to DOM node. * * @public */ export declare class RemoteElement extends RemoteObject { objectId: string; description: string; constructor(executionContext: ExecutionContext, cdpRemoteObject: CdpRemoteObject); isDocument(): boolean; isOption(): boolean; isFrame(): boolean; querySelectorAll(selector: string): Promise; querySelector(selector: string): Promise; queryXPathAll(expression: string): Promise; queryXPathOne(expression: string): Promise; matches(selector: string): Promise; parent(): Promise; closest(selector: string): Promise; children(): Promise; previousSibling(): Promise; nextSibling(): Promise; contains(otherEl: RemoteElement): Promise; isEqualTo(otherEl: RemoteElement): Promise; click(options?: ClickOptions): Promise; typeText(text: string, options?: TypeTextOptions): Promise; hover(options?: ClickOptions): Promise; selectOption(): Promise; describeNode(): Promise; isConnected(): Promise; checkConnected(): Promise; scrollIntoViewIfNeeded(): Promise; scrollIntoView(): Promise; getInfo(): Promise; isVisible(): Promise; checkVisible(): Promise; getStablePoint(): Promise; getClickablePoint(forceScroll?: boolean): Promise; getContentQuads(): Promise; getClientRects(): Promise; getBoundingClientRect(): Promise; getBoxModel(): Promise; stashOverlays(): Promise; unstashAll(): Promise; selectText(): Promise; focus(): Promise; blur(): Promise; getClickTarget(): Promise; resolveFrame(): Promise; contentDocument(): Promise; ownerDocument(): Promise; shadowRoot(): Promise; createSelector(scopeEl: RemoteElement, unique?: boolean): Promise; sendPost(url: string, postParams: Array<[string, string]>): Promise; highlight(): void; hideHighlight(): void; } export interface RemoteElementInfo { nodeType: number; nodeName: string; tagName: string; isConnected: boolean; attributes: { [name: string]: string; }; classList: string[]; text: string; innerText: string; textContent: string; childText: string; value: string; checked?: boolean; selected?: boolean; disabled?: boolean; indeterminate?: boolean; } export interface ClickOptions { waitForStable?: boolean; hideOverlays?: boolean; altKey?: boolean; ctrlKey?: boolean; metaKey?: boolean; shiftKey?: boolean; button?: 'left' | 'right' | 'middle' | 'none'; clickCount?: number; delay?: number; } export interface TypeTextOptions { click?: boolean; clickOptions?: ClickOptions; focus?: boolean; clear?: boolean; enter?: boolean; blur?: boolean; parallel?: boolean; delay?: number; } //# sourceMappingURL=remote-element.d.ts.map