Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.6.1/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.