Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/tests/deps.ts>Page#waitForFrame

The next-gen web framework.
Extremely Popular
Go to Latest
method Page.prototype.waitForFrame
Re-export
import { Page } from "https://deno.land/x/fresh@1.5.4/tests/deps.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.