Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method Page.prototype.waitForFrame
Re-export
import { Page } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";

Examples

Example 1

const frame = await page.waitForFrame(async (frame) => {
  return frame.name() === 'Test';
});

Parameters

urlOrPredicate: string | ((frame: Frame) => boolean | Promise<boolean>)
  • A URL or predicate to wait for.
optional
options: { timeout?: number; }
  • Optional waiting parameters

Returns

Promise<Frame>

Promise which resolves to the matched frame.