/// import DetachedBrowserPage from './DetachedBrowserPage.js'; import * as PropertySymbol from '../../PropertySymbol.js'; import AsyncTaskManager from '../../async-task-manager/AsyncTaskManager.js'; import IBrowserFrame from '../types/IBrowserFrame.js'; import IResponse from '../../fetch/types/IResponse.js'; import IGoToOptions from '../types/IGoToOptions.js'; import { Script } from 'vm'; import IBrowserWindow from '../../window/IBrowserWindow.js'; import IReloadOptions from '../types/IReloadOptions.js'; import BrowserFrameExceptionObserver from '../utilities/BrowserFrameExceptionObserver.js'; import IDocument from '../../nodes/document/IDocument.js'; import ICrossOriginBrowserWindow from '../../window/ICrossOriginBrowserWindow.js'; /** * Browser frame used when constructing a Window instance without a browser. */ export default class DetachedBrowserFrame implements IBrowserFrame { readonly childFrames: DetachedBrowserFrame[]; readonly parentFrame: DetachedBrowserFrame | null; readonly page: DetachedBrowserPage; window: IBrowserWindow; [PropertySymbol.asyncTaskManager]: AsyncTaskManager; [PropertySymbol.exceptionObserver]: BrowserFrameExceptionObserver | null; [PropertySymbol.listeners]: { navigation: Array<() => void>; }; [PropertySymbol.openerFrame]: IBrowserFrame | null; [PropertySymbol.openerWindow]: IBrowserWindow | ICrossOriginBrowserWindow | null; [PropertySymbol.popup]: boolean; /** * Constructor. * * @param page Page. * @param [window] Window. */ constructor(page: DetachedBrowserPage); /** * Returns the content. * * @returns Content. */ get content(): string; /** * Sets the content. * * @param content Content. */ set content(content: string); /** * Returns the URL. * * @returns URL. */ get url(): string; /** * Sets the content. * * @param url URL. */ set url(url: string); /** * Returns document. * * @returns Document. */ get document(): IDocument; /** * Returns a promise that is resolved when all resources has been loaded, fetch has completed, and all async tasks such as timers are complete. */ waitUntilComplete(): Promise; /** * Returns a promise that is resolved when the frame has navigated and the response HTML has been written to the document. */ waitForNavigation(): Promise; /** * Aborts all ongoing operations. */ abort(): Promise; /** * Evaluates code or a VM Script in the page's context. * * @param script Script. * @returns Result. */ evaluate(script: string | Script): any; /** * Go to a page. * * @param url URL. * @param [options] Options. * @returns Response. */ goto(url: string, options?: IGoToOptions): Promise; /** * Reloads the current frame. * * @param [options] Options. * @returns Response. */ reload(options: IReloadOptions): Promise; } //# sourceMappingURL=DetachedBrowserFrame.d.ts.map