///
import { EventEmitter } from 'events';
import { ExecutionContext } from './execution-context';
import { Page } from './page';
import { RemoteElement } from './remote-element';
import { RemoteObject } from './remote-object';
import { CdpFrame, RemoteExpression } from './types';
/**
* Represents a single frame (may correspond to page's main frame or any of the child frames).
*/
export declare class Frame extends EventEmitter {
page: Page;
frameId: string;
parentFrame?: Frame | undefined;
childFrames: Set;
loaded: boolean;
ready: boolean;
failed: boolean;
url: string;
securityOrigin: string;
mimeType: string;
protected _isolatedWorld: ExecutionContext | null;
protected _defaultExecCtx: ExecutionContext | null;
constructor(page: Page, frameId: string, parentFrame?: Frame | undefined);
get logger(): import("./logger").Logger;
isMainFrame(): boolean;
getCurrentExecutionContext(): Promise;
protected initIsolatedWorld(): Promise;
getDefaultExecutionContext(): Promise;
clearExecutionContexts(): void;
evaluate(pageFn: RemoteExpression, ...args: any[]): Promise;
evaluateElement(pageFn: RemoteExpression, ...args: any[]): Promise;
evaluateJson(pageFn: RemoteExpression, ...args: any[]): Promise;
document(): Promise;
querySelectorAll(selector: string): Promise;
querySelector(selector: string): Promise;
onNavigated(cdpFrame: CdpFrame): void;
onStoppedLoading(): void;
onExecutionContextCreated(context: any): void;
onExecutionContextDestroyed(executionContextId: string): void;
onExecutionContextsCleared(): void;
collectLogInfo(): {
frameId: string;
url: string;
};
captureHtmlSnapshot(): Promise;
private htmlSnapshotPopulateFrameIds;
private htmlSnapshotEvalWithFrameRefs;
private htmlSnapshotResolveFrameRefs;
}
//# sourceMappingURL=frame.d.ts.map